Problem with MagickCore::GetBlobSize
Posted: 2013-03-18T23:53:31-07:00
hi, I want to get the data pointer of Magick::Image.
Here is a way:
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!
Here is a way:
Code: Select all
...
Blob blob;
image.write(&blob);
void* data = blob.data();
...
thanks!