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.
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.