MagickConstituteImage

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
vipersnake
Posts: 1
Joined: 2011-02-17T15:11:30-07:00
Authentication code: 8675308

MagickConstituteImage

Post by vipersnake »

Is there a way to call MagickConstituteImage and pass in pixel data without it copying the data? i.e. the format matches internally so it uses the data without copying it.

I have an existing image data that is in ARGB 32bit char and it would be easier and more efficient to send in the existing data that it uses. This would also alleviate the need to extract it possibly.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: MagickConstituteImage

Post by magick »

The MPC image format is similar to what you're asking. However, it memory maps the pixel cache from disk whereas you want to map it directly from memory. Direct mapping of pixels in memory is not currently supported. We'll add it to the to-do list but we currently do not have an ETA on its implementation.
Post Reply