Index

CDTRasterizerV8

LineTo, LineToFrac

void LineTo(DT_FLOAT x1, DT_FLOAT y1)

void LineToFrac(DT_SFRAC x1, DT_SFRAC y1)

LineTo2, LineToFrac2

void LineTo2(DT_FLOAT x1, DT_FLOAT y1, const DT_UBYTE color[] = DV_RGBT)

void LineToFrac2(DT_SFRAC x1, DT_SFRAC y1, const DT_UBYTE color[] = DV_RGBT)

LineTo3, LineToFrac3

void LineTo3(DT_FLOAT x1, DT_FLOAT y1, DT_UBYTE r = 0, DT_UBYTE g = 0, DT_UBYTE b = 0, DT_UBYTE t = 0)

void LineToFrac3(DT_SFRAC x1, DT_SFRAC y1, DT_UBYTE r = 0, DT_UBYTE g = 0, DT_UBYTE b = 0, DT_UBYTE t = 0)

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.

Parameters

ParameterDescription

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.


 

Index