RotateBrush(id, angle[, factorx, factory, smooth])
id
by the specified
angle (in degrees). A positive angle rotates anti-clockwise, a
negative angle rotates clockwise.
Starting with Hollywood 2.5, this function can also scale the brush
while rotating it (called a rot-zoom). This is done in one pass so
the quality of the resulting image data is much better than if you
would first call ScaleBrush() and then RotateBrush()
. If you want to
have the brush scaled with the rotation, simply pass two scaling factors
as factorx and factory. These two factors are floating point numbers
representing a zoom percentage (1 corresponds to 100%, 0.5 to 50%, 1.5
to 150% etc.)
Additionally, you can choose to have the scaled and/or rotated graphics
interpolated by passing True
in the smooth
argument. The graphics will
then be scaled/rotated using anti-alias.
Please note:
RotateBrush()
will always operate on
the untransformed brush. This means that any previous transformations
applied to the brush using RotateBrush()
, ScaleBrush(),
or TransformBrush() will be undone when calling
RotateBrush()
.