View Full Version : Overlay bitmap not working? (VC++)

October 23, 2003, 09:22:23
I'm using the Control in a MFC dialog box. I handle the Overlay Update event (which is getting called) and do the following...

COverlayBitmap* pBM = &m_ctl.GetOverlayBitmap();

static int frames = 0;
CString s;
s.Format("Frames: %d", frames++); // Current frame count

pBM->DrawText(RGB(255,0,0),10,10,s); // Red text in the upper left corner

but no text appears on the screen. I've tried a call to m_ctl.Invalidate() also without effect. Is there anything else I have to do?


Stefan Geissler
October 23, 2003, 09:59:59
The overlay bitmap is not drawn, only if the sink type has been set to eUYVY. What sink type do you use? What video format do you use?

Are you able to display a line in the overlay?

October 23, 2003, 11:25:03
I do not have eUYVY listed (typo?)

I've tried:

RGB24 (720x576)
UYVY (720x576)
VUY2 (360x288)

and tried various lines/text/colours but nothing is displayed.

Stefan Geissler
October 23, 2003, 12:25:08

The sink type will be set with MemoryCurrentGrabberColorFormat property.

I did not test the IC Imaging Control ActiveX in a C++ environment, because the Class Library DLLs are easier to use and allow a easier, faster access to image data in C++.