ScaleToFit


procedure ScaleToFit;


This method adjusts the scale so that when the image is displayed, it will fill as much of the panel's inner client region as possible while preserving the image's width to height ratio.

See Also

IsScaledToFit