Change color of image in memory and MFC's CBitmap

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
Posts: 5
Joined: 2010-12-31T22:25:58-07:00
Authentication code: 8675308

Change color of image in memory and MFC's CBitmap

Post by Phantom » 2011-04-20T07:01:12-07:00


I have created a program that can change the color of an image i have.
I have used:

ConvertImageCommand(image_info,n_ArgumentCount,p_Arguments,(char **) NULL,&exception);

This function outputs the converted image to a file on my harddrive.

Is it possible to do the conversion in memory (not creating an output file) and can i somehow create a windows bitmap (i want a MFC CBitmap instance) of this memory ?
So: inputfile -> convertion_routine() -> Create_CBitmap_instance


Post Reply