The MoveTo, MoveToFrac, MoveTo2 and MoveToFrac2 methods instruct CDTRasterizerV8 to open a new contour. These methods automatically close any previously opened contour.
MoveToFrac is identical to MoveTo except that its coordinates are 24.8 signed fractional values. For more details on fractional units, see the D-Type Units section of this document.
MoveTo is identical to MoveTo2 except that its color and transparency are defined as 4 separate values. MoveToFrac is identical to MoveToFrac2 except that its color and transparency are defined as 4 separate values.
Parameter | Description |
---|---|
x1 |
X coordinate of the first point of the new contour, in pixels. |
y1 |
Y coordinate of the first point of the new contour, in pixels. |
r |
Color of the new contour — Red component (R). Must be between 0 and 255. Supported by all rasterizers except D-Type Grayscale Rasterizer / D-Type B&W Rasterizer. |
g |
Color of the new contour — Green component (G). Must be between 0 and 255. Supported by all rasterizers except D-Type Grayscale Rasterizer / D-Type B&W Rasterizer. |
b |
Color of the new contour — Blue component (B). Must be between 0 and 255. Supported by all rasterizers except D-Type Grayscale Rasterizer / D-Type B&W Rasterizer. |
t |
Transparency of the new contour (T). Must be between 0 and 255. Supported by all rasterizers except D-Type Grayscale Rasterizer / D-Type B&W Rasterizer. |
color |
Same as r, g, b and t defined above, except that all 4 components are stored in an array. |