PDA

View Full Version : Reg: More live display



sethupathy
February 15, 2011, 08:02:15
Dear Sir,

Is it possible to display the camera live to more than two windows?


Thanks and regards
Sethupathy

Stefan Geissler
February 15, 2011, 13:21:05
Dear Sir,
Is it possible to display the camera live to more than two windows?


Well, it is not possible directly. But you can copy the image into other HBITMAPs which can be displayed in other windows on your computer.

The method "getPtr" of the membuffer (http://www.imagingcontrol.com/en_US/support/documentation/class/IFrame.htm) returns a pointer to the pixels.
The method "getBitmapInfoHeader" of the membuffer (http://www.imagingcontrol.com/en_US/support/documentation/class/meth_descMemBuffer_getBitmapInfoHeader.htm) return the BITMAPINFOHEADER of the membuffer, which contains information you need to copy a bitmap. I also suggest to have a look into the "childview.cpp" of the "demoapp" sample. In there you will find the use of "StretchDIBits()" (or similar), that shows, how to copy a membuffer using Device Contexts (DC). This is GDI programming.