color of new image is not right

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: 2012-07-19T17:13:06-07:00
Authentication code: 15

color of new image is not right

Post by 9tontruck » 2012-09-24T14:47:17-07:00

Here is my code:

Code: Select all

	ColorRGB d;;;;
	Image image(Geometry(width, height), d);
The written image is not correct..
in case of "#define MAGICKCORE_QUANTUM_DEPTH 8" output image is (rgb = 0,1,47) which does not make sense.
in case of "#define MAGICKCORE_QUANTUM_DEPTH 16" output image is always black

Can anyone please tell me which part is wrong in my code?

Post Reply