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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 increase or decrease a selection
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

klausdoege

Germany
389 Posts

Posted - Oct 11 2012 :  10:36:39  Show Profile  Reply
Hello,
how can I increase or decrease a selection about 1 or 2 pixels ?

Klaus
www.klausdoege.de

w2m

USA
1990 Posts

Posted - Oct 11 2012 :  13:16:55  Show Profile  Reply
I did not test this but you could try:

procedure Select(x1, y1, x2, y2: integer; Op:TIESelOp = iespReplace); virtual;

ImageEnView1.Select(ImageEnView1.SelX1 + 1, ImageEnView1.SelY1 + 1, ImageEnView1.SelX2 + 1, ImageEnView1.SelY2 + 1, iespReplace);

ImageEnView1.Select(ImageEnView1.SelX1 - 1, ImageEnView1.SelY1 - 1, ImageEnView1.SelX2 - 1, ImageEnView1.SelY2 - 1, iespReplace);


William Miller
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Oct 12 2012 :  08:01:44  Show Profile  Reply
Hello William,
yes with the rectangle is simple it.
But I want to change it by selection with an ellipse, lasso or P2P.

Klaus
www.klausdoege.de
Go to Top of Page

w2m

USA
1990 Posts

Posted - Oct 12 2012 :  10:14:33  Show Profile  Reply
I am sorry but currently ImageEn does not support selection expansion or shrinking that I am aware of. You can do it yourself in code for rectangles, rounded rectangles and ellipses but it will require some coding to determine the selection type then to expand or shrink the selection baised on the type of the selection. Doing this for other types of selections may not be possible, at least easily.

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: