ImageEn, unit iexCanvasUtils

IEShapePreferredAspectRatio


Declaration

function IEShapePreferredAspectRatio(Shape: TIEShape): Double;


Description

Some shapes are best displayed at the ratio they were designed (typically 1:1). This method returns that preferred aspect ratio (equating to Height / Width ) or 0 if the shape has no preferred ratio.

Note: Defined in iexCanvasUtils unit


Example

aspectRatio := IEShapePreferredAspectRatio( iesHeart ); // Returns 1