Creating image from raw RGBA data with C APIs

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
rham2
Posts: 2
Joined: 2012-10-16T04:15:04-07:00
Authentication code: 67789

Creating image from raw RGBA data with C APIs

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Creating image from raw RGBA data with C APIs

Post by anthony »

The depth setting is used with the size setting to set the image size and number of bits per value.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
rham2
Posts: 2
Joined: 2012-10-16T04:15:04-07:00
Authentication code: 67789

Re: Creating image from raw RGBA data with C APIs

Post 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.
Post Reply