PDA

View Full Version : Dynamic drawing on live video (Overlay)



bvgsoft_s
December 20, 2007, 11:11:35
I am testing the trial version now.

I have written some code to draw lines in _OverlayUpdate event.
I want to move those lines dynamically by changing x and y co-ordinates.
x and y changes when I press arrow keys using keypress even of form. (KeyPreview=True).Position of lines does not change when co-ords changes.
How to solve this problem, kindly help.

Stefan Geissler
December 20, 2007, 12:28:37
Hi,

You must delete the line on the old position before drawing the new line. Othewise you would get two lines. Draw the old line with the old coordinates using the dropoutcolor.

bvgsoft_s
December 21, 2007, 06:23:24
Thanks a lot.
It is working fine.
I have changed code. Drawing code written in the Overlay_Setup (UDF) and in _UpdateEvent update the image buffer.This is working fine.
Regards,

Stefan Geissler
December 21, 2007, 08:32:33
Hi,

Thank you very much for your feed back!