[magick-users] Magick++ on Windows XP

Matthew Britton mbritton at tosc.com
Fri Jul 25 09:19:07 PDT 2008


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



More information about the Magick-users mailing list