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
|