-
Hello, I'm trying to get a bitmap of my chart onto the clipboard, but struggling to do so (I keep getting an invalid bitmap message). Has anyone else succeeded? My code is below. I've tried two different ways to get at the data (pBMPData below), neither worked for me. Thanks in advance, Tony.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Unfortunately, the memory block returned by The code looks like this: MemBlock block = c->makeChart(Chart::BMP);
wxMemoryInputStream in(block.data, block.len);
wxBitmap bmp(wxImage(in, wxBITMAP_TYPE_BMP)); |
Beta Was this translation helpful? Give feedback.
Unfortunately, the memory block returned by
makeChart(Chart::BMP)
can't be passed directly to awxBitmap
constructor. First, you have to convert the memory block to awxImage
object that then can be passed to awxBitmap
constructor.The code looks like this: