Hello:

 

I am using Magick++ to  create a Magick::Image from raw two bit pixel data.
The code is very simple:

 

Magick::Geometry g(width, height);

Int image_size_bytes = 2*width*height;

BYTE * pixels = new BYTE[image_size_bytes];

 

Magick::Blob b(pixels, image_size_bytes);

Magick::Image i(b, g, 16, "GRAY");

 

This code compiles and throws the following exception at runtime:

 

Caught exception:  ImageMagick-6.4.2-Q16:  Image does not contain a geometry

 

I can't seem to find a description of this error message.  Can one of you
please advise?

 

Sincerely yours

Matthew Britton

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to