PictureBrush.Mode

From Xojo Documentation

Property (As PictureBrush.Modes )
aPictureBrush.Mode = newPictureBrush.ModesValue
or
PictureBrush.ModesValue = aPictureBrush.Mode

Supported for all project types and targets.

The mode to be used when drawing the Image in the drawing.

Notes

Not all modes are supported on all platforms. See the Modes enumeration for details.

fa-exclamation-circle-32.png
Setting this property to a mode that is not supported on the OS upon which the app is running will result in an UnsupportedFormatException occurring.

Sample Code

In this example, the Mode of the PictureBrush is set to Tile in the Paint event of a Canvas:

Var pb As New PictureBrush
pb.Image = Moon
pb.Mode = PictureBrush.Modes.Tile

See Also

PictureBrush.Modes enumeration.