ImageEn, unit imageenview

TImageEnView.IdealComponentWidth

TImageEnView.IdealComponentWidth


Declaration

property IdealComponentWidth: integer; (Read-only)


Description

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


Example

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


See Also

loFitToLayersWhenZooming
IdealComponentHeight
IdealImageWidth
IdealImageHeight
GetIdealZoom