CropBrush(id, x, y, width, height)
id
at the position specified
by x
and y
to the new dimension specified by width
and height
. If the
brush has a mask and/or an alpha channel, they will be cropped as well.
CreateBrush(1, 200, 200) SelectBrush(1) Circle(50, 50, 50, #RED) EndSelect CropBrush(1, 50, 50, 101, 101) DisplayBrush(1, #CENTER, #CENTER)Creates a new brush and draws a red circle in the center of it. After that, the empty area surrounding the circle will be cropped.