ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Draw Rectangle over the video show in imagenenview

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
hamed1234 Posted - Aug 29 2020 : 07:02:55
Hi,
Can I Draw rectangle/rectangles over the Imageenview when it showing a video or connected to a camera?
I want to detect some area and draw rectangle(s) whit color borders.
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 04 2020 : 18:38:59
Hi

The back buffer is likely cleared by the video frame. Did you look at the code in the TrackObjects.dpr demo?

Nigel
Xequte Software
www.imageen.com
hamed1234 Posted - Sep 03 2020 : 07:27:05
Thank you xequte,
I tried to use canvas but It did not work . I use this in button event :

ImageEnView1.BackBuffer.Canvas.Pen.Width := 1;
ImageEnView1.BackBuffer.Canvas.Pen.Color := clRed;
ImageEnView1.BackBuffer.Canvas.Pen.Style := psSolid;
ImageEnView1.BackBuffer.Canvas.MoveTo(10, 10);
ImageEnView1.BackBuffer.Canvas.LineTo(100, 100);
ImageEnView1.Update;

Can you please tell me my mistake?
xequte Posted - Aug 30 2020 : 17:24:03
Hi

Yes, you can either draw to the canvas after the video content has been assigned to it, or you add a shape layer and move it as required.

Please take a look at how it is done in the demo:

\Demo\IEVision\TrackObjects\TrackObjects.dpr

Nigel
Xequte Software
www.imageen.com