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
 how to make fix size selection?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

dracola

Argentina
37 Posts

Posted - Feb 09 2015 :  03:23:20  Show Profile  Reply
how to make fix size selection like in photosh*p cropping tools?
like i want to crop picture 3x4cm with resolution 300
so when i resize the selection, the selection proportion keep 3x4

thank's in advance ^_^

klausdoege

Germany
389 Posts

Posted - Feb 09 2015 :  04:17:21  Show Profile  Reply
Hi,
try this:

imageenvect.MouseInteract := [miSelect];
imageenvect.ForceALTkey := true;
imageenvect.select(0,0,400,300); // 400x300 can calculate with dpi Resolution

Now you can resize with 3:4


Klaus
www.klausdoege.de
Go to Top of Page

dracola

Argentina
37 Posts

Posted - Feb 16 2015 :  21:24:46  Show Profile  Reply
Thank's klausdoege
u'r the best ^_^
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: