Page 1 of 1

Change color of image in memory and MFC's CBitmap

Posted: 2011-04-20T07:01:12-07:00
by Phantom
Hi,

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

Thanks.