Partager via


Accelerated Line Segment Function (Windows Embedded CE 6.0)

1/6/2010

When an accelerated line drawing function is implemented, it must draw lines with subpixel precision. The EmulatedLine function provided with the GPE performs the same task.

The function pointer in the pLineParms pLine parameter is called once for each line segment, with the start pixel on the destination surface defined by the pLineParms xStart and yStart parameters.

The Bresenham parameters for the line are passed in the pLineParms dM and dN parameters. The number of pixels to draw is indicated in the pLineParms cPels parameter.

The function should draw the line in an octant defined by the pLineParms iDir parameter, as shown in the following illustration.

Ee483468.6abe0b50-2378-4b44-a440-3b7b4957853b(en-US,WinEmbedded.60).gif

See Also

Concepts

Bit Block Transfers and Line Drawing Acceleration
Bit Block Transfer Acceleration
Line Drawing Acceleration
Display Driver Development Concepts
Display Driver Extensions
Display Driver Samples