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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 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)?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
yogiyang Posted - Feb 13 2023 : 00:52:23
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
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Feb 13 2023 : 19:05:17
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