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
 TImageEnView "Crop to Fit" option

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
HeartWare Posted - Jul 03 2021 : 02:22:29
Is it possible to get an TImageEnView (v10.0) to do a "Crop to Fit" of a loaded image when displaying it? Ie., it should zoom the picture to a scale factor so that the image fills the entire size of the TImageEnView, possibly with some part of the image (as little as possible) being cropped off.

3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jul 09 2021 : 02:13:13
Hi

We'll have this in the next release as TImageEnView.FitCropping. You can email me to test it.

Nigel
Xequte Software
www.imageen.com
HeartWare Posted - Jul 04 2021 : 10:14:51
Yes, that code works. Except when you then re-size the form (which leads to a re-size of the TImageEnView). In that case, the Crop should carry along, just like the AutoFit does. How about an AutoCrop option?

And remember to disable AutoFit when you set AutoCrop (and vice versa) and to refresh the displayed data in the TImageEnView.
xequte Posted - Jul 03 2021 : 18:24:35
Hi

Do you mean like the following?

// Zoom to fill control by cropping image view (while maintaining the aspect ratio)
ImageEnView.GetIdealZoom( ZoomX, ZoomY );
ImageEnView.Zoom := dmax( ZoomX, ZoomY );


Nigel
Xequte Software
www.imageen.com