摘要 |
A method for drawing a paint stroke with a bitmap brush having pixels located at locations definable in a Cartesian coordinate system. The paint stroke is created by defining a path of a guide line, the path having an arc-length and the guide line having a thickness, and scaling the bitmap brush as a function of the arc-length of the path and the thickness of the guide line. The bitmap brush is then transformed such that the x-axis of the bitmap brush generally aligns with the path and the y-axis of the bitmap brush generally aligns with an instantaneous normal to the path such that the bitmap brush is warped to the guide line.
|