PDA

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



Unregistered
October 23, 2003, 10: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->SetEnable(TRUE);
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?

Thx.

Stefan Geissler
October 23, 2003, 10: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?

tdiethe
October 23, 2003, 12: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, 13:25:08
Hello,

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++.