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
 How to draw a border around Marquee Selection?

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
yogiyang Posted - Feb 24 2018 : 05:43:30
Hello,

I am trying to draw a border which is 3 pix thick around existing Marquee Selection. This border has to be drawn 7 pix away.

Please help as to how we can do this?

TIA


Yogi Yang
4   L A T E S T    R E P L I E S    (Newest First)
yogiyang Posted - Feb 27 2018 : 09:36:58
Hello Nigel,

Thanks for the tip. I will check it out.


Yogi Yang
xequte Posted - Feb 26 2018 : 14:30:02
Hi Yogi

You can use the PolySel property to iterate through the points of the selection:

https://www.imageen.com/help/TImageEnView.PolySel.html

Nigel
Xequte Software
www.imageen.com
yogiyang Posted - Feb 26 2018 : 05:26:59
Hello Nigel,

Thanks for your suggestion. But that is not possible as the selection created by user can be of any shape as the user will be allowed to use Lasso for making selection.

Is it possible to get an array of all the locations/points of a selection?

If this is possible then I can draw a line by adding required amount of pixels!

TIA


Yogi Yang
xequte Posted - Feb 25 2018 : 17:24:39
Hi Yogi

Why not just do a standard TCanvas.Rectangle() or TIECanvas.Rectangle() with a pen.width of 7?

Of course the selected rect will be TImageEnView.SelectedRect, which will you need to inflate by 7 pixels.

Don't forget to call TImageEnView.Update after modifying the bitmap.



Nigel
Xequte Software
www.imageen.com