IWxStyle.PictureAutoSize

Syntax

PictureAutoSize : Boolean;

Description

The PictureAutoSize property fits size of a graphics primitive to the original image size. If the property is set to True, size is fitted, otherwise 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.PictureAutoSize := True;

End Sub User;

After executing the example the size is fitted.

Below is the example, which shows objects before the property is defined with the True value (left) and after it has been defined with the True value (right):

See also:

IWxStyle