Page 1 of 1

Problem with MagickCore::GetBlobSize

Posted: 2013-03-18T23:53:31-07:00
by xtang
hi, I want to get the data pointer of Magick::Image.
Here is a way:

Code: Select all

...
Blob blob;
image.write(&blob);
void* data = blob.data();
...
But Magick::Image.write(Blob&) have to alloc a new memory to keep the data. How can I get the data pointer of Magick:Image directly?

thanks!