using the api, can't create image from array

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
ulao
Posts: 9
Joined: 2011-10-26T06:30:54-07:00
Authentication code: 8675308

using the api, can't create image from array

Post by ulao »

using the magic namespace I tied to create an image from my bitarray.

Image image(1280,720,"RGB",CharPixell,rgbImage);

but the app freezes and crashes . rgbImages is a char pointer used like so:
char * rgbImage = NULL;
rgbImage = (char *)malloc( size);
size is my step btypes * y. Did I do something wrong?

Do I need to use InitializeMagick ?
Post Reply