Page 1 of 1

Creating image from raw RGBA data with C APIs

Posted: 2012-10-16T04:21:47-07:00
by rham2
Hi there,

I'm using ImageMagick Wand/core APIs to process some images. I have an image coming in to my code that is a lump of data, void*, in RGBA format with 32 bpp. However, my ImageMagick is compiled with a different bit depth (QuantumDepth of 16, 64 bpp).

How can I convert the incoming RGBA image data to an ImageMagick Image?

Kind regards,

Bob Ham

Re: Creating image from raw RGBA data with C APIs

Posted: 2012-10-16T21:26:15-07:00
by anthony
The depth setting is used with the size setting to set the image size and number of bits per value.

Re: Creating image from raw RGBA data with C APIs

Posted: 2012-10-18T06:58:56-07:00
by rham2
anthony wrote:The depth setting is used with the size setting to set the image size and number of bits per value.
What do you mean? I need to determine which functions to use to convert my incoming RGBA image data to an ImageMagick Image.