ImageEn, unit imageenview

TImageEnView.IdealComponentWidth

TImageEnView.IdealComponentWidth

Declaration

property IdealComponentWidth: Integer;

Description

IdealComponentWidth and IdealComponentHeight return the size that the TImageEnView component should be to exactly fit the current image.

Read-only

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