The LineTo, LineToFrac, LineTo2, LineToFrac2, LineTo3 and LineToFrac3 methods instruct CDTRasterizerV8 to add a new line segment to the current contour.
LineToFrac is identical to LineTo except that its coordinatess are 24.8 signed fractional values. For more details on fractional units, see the D-Type Units section of this document.
LineTo2 is identical to LineTo except that it supports color at the line's end point (with certain D-Type Rasterizers only). LineToFrac2 is identical to LineToFrac except that it supports color at the line's end point (with certain D-Type Rasterizers only).
LineTo3 is identical to LineTo2 except that its color and transparency are defined as 4 separate values. LineToFrac3 is identical to LineToFrac2 except that its color and transparency are defined as 4 separate values.
Parameter | Description |
---|---|
x1 |
End X coordinate of the new line segment, in pixels. |
y1 |
End Y coordinate of the new line segment, in pixels. |
r |
Color of the end point — Red component (R). Must be between 0 and 255. Supported by D-Type Shading Rasterizer only. |
g |
Color of the end point — Green component (G). Must be between 0 and 255. Supported by D-Type Shading Rasterizer only. |
b |
Color of the end point — Blue component (B). Must be between 0 and 255. Supported by D-Type Shading Rasterizer only. |
t |
Transparency of the end point (T). Must be between 0 and 255. Supported by D-Type Shading Rasterizer only. |
color |
Same as r, g, b and t defined above, except that all 4 components are stored in an array. |