PerspectiveDistortBrush(id,cx1,cy1,cx2,cy2,cx3,cy3,cx4,cy4[,smooth])
id
. You have to pass 4 control points that describe a
quadrangle into which the brush shall be mapped. The optional argument
smooth
can be used to enable antialiased pixel interpolation which
leads to a smoother appearance but takes longer to calculate.
The control point mapping is as follows: The top-left corner of the brush is mapped to control point 1, the top-right corner is mapped to control point 2, the bottom-right corner to control point 3, and the bottom-left corner to control point 4.
False
)PerspectiveDistortBrush(1, 100, 0, 400, 0, 500, 300, 0, 300)The code above maps brush 1 into a trapezoid shape.