Index

CDTRasterizerV8

BSplineTo, BSplineToFrac

void BSplineTo(DT_FLOAT x1, DT_FLOAT y1, DT_FLOAT x2, DT_FLOAT y2, DT_SLONG seg = 0)

void BSplineToFrac(DT_SFRAC x1, DT_SFRAC y1, DT_SFRAC x2, DT_SFRAC y2, DT_SLONG seg = 0)

BSplineTo2, BSplineToFrac2

void BSplineTo2(DT_FLOAT x1, DT_FLOAT y1, DT_FLOAT x2, DT_FLOAT y2, DT_SLONG seg = 0, const DT_UBYTE color1[] = DV_RGBT, const DT_UBYTE color2[] = DV_RGBT)

void BSplineToFrac2(DT_SFRAC x1, DT_SFRAC y1, DT_SFRAC x2, DT_SFRAC y2, DT_SLONG seg = 0, const DT_UBYTE color1[] = DV_RGBT, const DT_UBYTE color2[] = DV_RGBT)

The BSplineTo, BSplineToFrac, BSplineTo2 and BSplineToFrac2 methods instruct CDTRasterizerV8 to add a new B-Spline curve segment to the current contour.

BSplineToFrac is identical to BSplineTo 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.

BSplineTo2 is identical to BSplineTo except that it supports color at the curve's control and end points (with certain D-Type Rasterizers only). BSplineToFrac2 is identical to BSplineToFrac except that it supports color at the curve's control and end points (with certain D-Type Rasterizers only).

Parameters

ParameterDescription

x1

X coordinate of the control point of the new B-Spline curve segment, in pixels.

y1

Y coordinate of the control point of the new B-Spline curve segment, in pixels.

x2

End X coordinate of the new B-Spline curve segment, in pixels.

y2

End Y coordinate of the new B-Spline curve segment, in pixels.

seg

Minimum number of curve subdivisions. Higher values will result in smoother looking curves but will take more time to compute. Set to 0 to automatically calculate the optimum value.

color1

Color/transparency of the curve's control point. Supported by D-Type Shading Rasterizer only. See color in LineTo2 or LineToFrac2 for details.

color2

Color/transparency of the curve's end point. Supported by D-Type Shading Rasterizer only. See color in LineTo2 or LineToFrac2 for details.


 

Index