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 set aspect ration in DoPreviews dialog for Crop (peCrop)?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
725 Posts

Posted - Feb 13 2023 :  00:52:23  Show Profile  Reply
Hello,

I am using following code to show user Crop dialog.
ieSelectedPhoto.Proc.PreviewsParams := [prppDefaultLockPreview];
  ieSelectedPhoto.Proc.DoPreviews([peCrop]);

Here I want to restrict the aspect ration to 1.5:2 (0.75).

How to lock crop ratio in the DoPreviews dialog?

TIA

Yogi Yang

xequte

38196 Posts

Posted - Feb 13 2023 :  19:05:17  Show Profile  Reply
Hi Yogi

In next week's release you can use:

// Lock crop ratio to 4:3 landscape
ImageEnView1.Proc.IPDialogParams.Crop_LockAspectRatio := 4 / 3;
ImageEnView1.Proc.DoPreviews( ppeEditingFunctions );


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