GetViewportScale

Graphics32

TLayerCollection.GetViewportScale

procedure GetViewportScale(var ScaleX, ScaleY: Single);

Description

Returns the X and Y scale of the viewport. In the default implementation this equals the ScaleX and ScaleY property of the connected TCustomImage32 descendant.

Note: If you previously used the deprecated CoordXForm property, use GetViewportScale instead to retrieve the viewport scale.

See Also

CoordXForm, TCustomImage32.ScaleX, TCustomImage32.ScaleY, TCustomImage32, Using Layers