Reputation: 11
I am using C++ for Video play and analysis software developer. In here i have a question. I want drawing line and more shape over MFP video. How can i this?.I tried catch WM_PAINT message and drawing process but unsuccess. I upload two image to showing problem. I can draw line but since MFP disable, but MFP writes video to over my drawing when MFP enabled. Thank You. Before MFP Video Playing After MFP Video Playing
EDIT:Drawing Code
void __fastcall TForm6::Ciz()
{
PAINTSTRUCT ps;
Panel2->Repaint();
HPEN hPen = CreatePen(PS_SOLID,2,RGB(255,130,0));
ResetDCW(dc,devMode);
SelectObject(dc,hPen);
BeginPaint(Panel2->Handle, &ps);
MoveToEx(dc, Dot2->Left + 15, Dot2->Top + 15, NULL);
LineTo(dc, Dot1->Left + 15, Dot1->Top + 15);
EndPaint(Panel2->Handle, &ps);
BeginPaint(Panel2->Handle, &ps);
MoveToEx(dc, Dot3->Left + 15, Dot3->Top + 15, NULL);
LineTo(dc, Dot2->Left + 15, Dot2->Top + 15);
StrokePath(dc);
EndPaint(Panel2->Handle, &ps);
}
Upvotes: 0
Views: 88