ScaleBrush(id, width, height[, smooth])
id
to the specified dimensions.
Optionally, you can choose to have the scaled graphics
interpolated by passing True
in the smooth
argument. The graphics
will then be scaled using anti-alias.
Please note: You should always do scale operations with the original brush. For instance, if you scale brush 1 to 12x8 and then scale it back to 640x480, you will get a messed image. Therefore you should always keep the original brush and scale only copies of it.
Note that for vector brushes, ScaleBrush()
will always operate on
the untransformed brush. This means that any previous transformations
applied to the brush using ScaleBrush()
, TransformBrush(),
or RotateBrush() will be undone when calling
ScaleBrush()
.
New in V2.0: You can pass #KEEPASPRAT
as either width
or height
.
Hollywood will calculate the size then automatically by taking the
aspect-ratio of the brush into account.
Starting with Hollywood 2.0, width
and height
can also be a string
containing a percent specification, e.g. "50%".
ScaleBrush(1,640,480)Scales brush 1 to a resolution of 640x480.