Page 1 of 1

How to load a file which has already in memory?

Posted: 2007-01-07T19:35:06-07:00
by stanleyweike
For files which are already loaded in memory, how could I read it? In MagickCore APIs, I could only find the function ReadImage() which basically accept a file pointer or a file name, is there any read function which accepts a buffer or something?

Posted: 2007-01-07T19:43:32-07:00
by magick
MagickWand has this method, MagickReadImageBlob(), to read an image from a in-memory blob. If you still want to use MagickCore rather than MagickWand, use code similar to MagickReadImageBlob() found in the magick/magick-image.c source module.