Compartir a través de


Accelerated Line Segment Function (Windows CE 5.0)

Send Feedback

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 pLineParmspLine parameter is called once for each line segment, with the start pixel on the destination surface defined by the pLineParmsxStart and yStart parameters.

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

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

ms890437.octants(en-us,MSDN.10).gif

See Also

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

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.