Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic how box use picture with a memory ? (Read 2135 times)
strong_peng
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 69
Joined: Jul 18th, 2007
how box use picture with a memory ?
Mar 31st, 2011 at 2:53am
Print Post  
i load picture in memory before flowchart start.
i want to load picture from memory .
how use box.setpicture function?
CTopoPicture how load picture?

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how box use picture with a memory ?
Reply #1 - Mar 31st, 2011 at 7:43am
Print Post  
You must create an OLE StdPicture object from the bitmap bytes. Using Win32 API, that can be done by calling CreateStreamOnHGlobal to create an IStream object from the byte array, and then OleLoadPicture to load the image from the IStream. You can find an example here:
http://www.codeproject.com/KB/graphics/render.aspx

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint