Gambas Documentation - /comp/gb.qt4/paintbrush/matrix

# PaintBrush.Matrix (gb.qt4)

Property Matrix As PaintMatrix

Returns or sets the brush transformation matrix.

This matrix is a transformation from brush space to user space.

When a brush is first created it always has the identity matrix for its transformation matrix, which means that brush space is initially identical to user space.

Please note that the direction of this transformation matrix is from brush space to user space.

For example, if you want to make a brush appear twice as large as it does by default the correct code to use is:

    Dim MyBrush As PaintBrush
    MyBrush.Scale(2.0, 2.0)