Page 1 of 1

color of new image is not right

Posted: 2012-09-24T14:47:17-07:00
by 9tontruck
Here is my code:

Code: Select all

	ColorRGB d;
	d.blue(240.0);
	d.green(210.0);
	d.red(8.0);
	d.alpha(0);
	Image image(Geometry(width, height), d);
	image.write("01.jpg");
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?