PDA

View Full Version : Show Image



ruicosta
June 20, 2005, 16:54:35
Hello,

I am using the IC ActiveX control for image processing at Borland C++ Builder 6.
I would like to show the image that i have on buffer on my own ImageBox.
Is this possible? How can i do it?

Best regards
Rui

Stefan Geissler
June 21, 2005, 08:19:55
Hello,

You should try to use the GetDib() function. It gives you an handle to a DIB in the imagebuffer. With SetDiBits() of the WINAPI you should be able to copy it into a DC.
With GlobalFree() you must free the DIB's memory to avoid memory leaks.
Releated links are:
http://www.imagingcontrol.com/ic/docs/html/activex/meth_descICImagingControl_MemoryGetDib.htm
http://www.imagingcontrol.com/ic/docs/html/activex/meth_descImageBuffer_GetDib.htm