PictureBrush

From Xojo Documentation

Class (inherits from GraphicsBrush)


New in 2020r2

Enumerations
Modes
Properties
Image Mode

Notes

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

Sample Code

This example draws a picture (a project item named "Moon") into a rectangle the size of the a Canvas using the Tile mode:

Var pbrush As New PictureBrush
pbrush.Image = Moon
pbrush.Mode = PictureBrush.Modes.Tile
g.Brush = pbrush

g.FillRectangle(0, 0, g.Width, g.Height)

Compatibility

Desktop and iOS project types on all supported operating systems.

See Also

Graphics, LinearGradientBrush, ShadowBrush, and RadialGradientBrush classes.