IWxStyle.PictureProportional

Syntax

PictureProportional : Boolean;

Description

The PictureProportional property enables the user to lock aspect ratio of an image when resizing an object. If the property is set to True, the aspect ratio is locked, if it is set to False, it is not.       

The default property value is False.

Example

Executing the example requires an existing ws object of the IWxWorkspace type.

Sub User;

Var

Ws : IWxWorkspace;

shape : IWxShape;

style : IWxStyle;

Begin

Shape := Ws.Shapes.Item(0);

Shape.Picture := GxImage.FromFile("c:\1.bmp");

Style := Shape.Style;

Style.PictureProportional := True;

End Sub User;

After executing the example image size is scaled with the aspect ratio locked when resizing an object.

See also:

IWxStyle