언어 설정

Menu
Sites
Language
drawing on camera preview in Form

Hi

 

Is it possible to paint on Form used as OverlayRegion for Camera preview?

I set camera preview on my form prior to getting OverlayRegion. Tried to draw some primitives in Form::OnDraw() but

I can see none results.

 

result
CameraForm::OnDraw() {

    result r = E_SUCCESS;

	Canvas* pCanvas = GetCanvasN();

	if (pCanvas != null) {

		Color color(0xff,0x0,0x0);
		pCanvas->SetForegroundColor(color);

		pCanvas->DrawLine(
			Point(x1,    y1),
			Point(x2,    y2)
		);

	}

	delete pCanvas;

	return r;
}

 

So how to paint something on camera content in Form?

Thanks for help.

 

slaw

Responses

2 댓글
Slawek Kowalski

Yes, it is exactly what I looked for. Thank you very much hgw7 :)