Some methods can't be used in Magick++

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
Posts: 2
Joined: 2018-04-10T01:21:38-07:00
Authentication code: 1152

Some methods can't be used in Magick++

Post by milad » 2018-04-10T02:27:54-07:00

I've installed ImageMagick-7.0.7-Q16 and I'm using Magick++ in my C++ program (using Visual Studio 2015, Release, x64, project is configured to use Magick++).
I was able to use some of the functions like posterize and crop but I had problem with other functions. Some functions like quantizeColors (myImage.quantizeColors(2)) and quality have no effect on images. And I got an error in this code after executing which I don't think should give any errors:

Code: Select all

	Image img(Geometry(800, 800), Color("white"));
	img.draw(Magick::DrawableText(25, 25, "Some text")); // Error
I've tried to compile ( ... hp#windows) the program (ImageMagick-7.0.7-28) myself and use the libraries. After compiling it I wasn't able to find the libraries to include it in my project (is it inside the 'VisualMagick' folder?! Magick++? There was no help on how to use Magick++ in a project after compiling it.)

Any help would be appreciated.

Posts: 10282
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Some methods can't be used in Magick++

Post by snibgo » 2018-04-10T09:46:38-07:00

milad wrote:And I got an error in this code after executing ...
What is the error message? The code you show compiles and executes with no error for me, with v7.0.7-28.

When reporting errors, please give full details. This should include a complete but minimal program that reproduces the error.

The Windows source builds and runs successfully for me, with the Cygwin toolset. I don't use Visual Studio.
snibgo's IM pages:

Post Reply