IWxStyle.PictureStretch

Syntax

PictureStretch : Boolean;

Description

The PictureStretch property enables the user to stretch an image to the size of a control when resizing an object. If the property is set to True, an image is stretched, if it is set to False, it is not stretched.

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.PictureStretch := True;

End Sub User;

After executing the example an image, which will be stretched if the shape is resized, is used as a shape fill.

See also:

IWxStyle