|
MemBlock and CImage |
Posted by Yonggang Hu on Mar-06-2011 00:39 |
|
Hello, everyone.
I just dont know how to convert the format of the result directly to CImage. I used to export the result as an image file, then loaded them by CImage class. Althoug i know the class DrawArea can directly export the image into memory, but i just don't know how to convert the MemBlock to Cimage. Who can give me an example?
Thank you!
Yonggang Hu |
Re: MemBlock and CImage |
Posted by Peter Kwan on Mar-06-2011 16:18 |
|
Hi Yonggang,
ChartDirector can output the image to memory, which you already know.
To create a CImage with image from memory, you would need to refer to Microsoft documentation or Microsoft support forums.
You may try using CImage::Load(IStream*) to load an image from an IStream, in which the IStream can be created using CreateStreamOnHGlobal using global memory which is a copy of the the image memory.
Regards
Peter Kwan |
|