The dcRasterizerLineTo, dcRasterizerLineToFrac, dcRasterizerLineTo2, dcRasterizerLineToFrac2, dcRasterizerLineTo3 and dcRasterizerLineToFrac3 functions instruct D-Type Direct Color Rasterizer to add a new line segment to the current contour.
dcRasterizerLineToFrac is identical to dcRasterizerLineTo 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.
dcRasterizerLineTo2 is identical to dcRasterizerLineTo except that it supports color at the line's end point (with certain D-Type Rasterizers only). dcRasterizerLineToFrac2 is identical to dcRasterizerLineToFrac except that it supports color at the line's end point (with certain D-Type Rasterizers only).
dcRasterizerLineTo3 is identical to dcRasterizerLineTo2 except that its color and transparency are defined as 4 separate values. dcRasterizerLineToFrac3 is identical to dcRasterizerLineToFrac2 except that its color and transparency are defined as 4 separate values.
Parameter | Description |
---|---|
dcr |
Handle of the previously created D-Type Direct Color Rasterizer instance. |
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. |