ImageEn, unit imageenview

TImageEnView.IdealComponentHeight

TImageEnView.IdealComponentHeight


Declaration

property IdealComponentHeight: integer; (Read-only)


Description

Returns the height that the TImageEnView component should be to exactly fit the current image.


Example

// Resize ImageEnView to fully contains Carlotta.jpg
ImageEnView.LoadFromFile('C:\Carlotta.jpg');
ImageEnView1.Width := ImageEnView1.IdealComponentWidth;
ImageEnView1.Height := ImageEnView1.IdealComponentHeight;


See Also

 loFitToLayersWhenZooming
 IdealComponentWidth
 IdealImageWidth
 IdealImageHeight
 GetIdealZoom