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
 Programmatically select and crop image
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

DmitriL

Netherlands
4 Posts

Posted - Jul 15 2019 :  03:57:38  Show Profile  Reply
Hi,

I'd like to programmatically make a selection and crop it. I prefer making a selection in a circle. I tried using SetSelectionGripStyle and SetLayersGripStyle but without result. It seems there is no rectangle for selection set when using these functions.

ImageEnView->SetSelectionGripStyle(clWhite, clWhite, bsSolid, 5, true, iegsCircle);
ImageEnView->SetLayersGripStyle(clBlack, clWhite, bsSolid, 5, iegsCircle);


Below you find the result I prefer.



Can you please help me out? Thank you in advance.

xequte

38172 Posts

Posted - Jul 15 2019 :  19:32:52  Show Profile  Reply
Hi

You are setting the styling of the selection grips. But it sounds like you are trying to make a selection? Is that correct?

Programmatically create a circular selection using:

http://www.imageen.com/help/TImageEnView.SelectEllipse.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: