Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
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.
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 );