Output(OS_SCANLINES)
WORD Output(
LPPDEVICE lpDestDev,
WORD wStyle,
WORD wCount,
LPPOINT lpPoints,
LPPPEN lpPPen,
LPPBRUSH lpPBrush,
LPDRAWMODE lpDrawMode,
LPRECT lpClipRect
);
Draws a series of horizontal line segments at a specified vertical position. GDI calls this function when simulating output such as filling a polygon.
Every graphics driver should support the OS_SCANLINES style.
- Returns 1 if the function is successful, zero otherwise.
- lpDestDev
- Address of a PDEVICE or PBITMAP structure that specifies the destination device or bitmap.
- wCount
- The number of POINT structures in the array pointed to by the lpPoints parameter.
- lpPoints
- Address of an array of POINT structures that contains the scan line coordinates. The y member in the first POINT structure specifies the y-coordinate to draw the scan lines. In each subsequent structure, the x member specifies the x-coordinate of a scan line's starting point and the y member specifies the x-coordinate of the ending point.
- lpPPen
- Address of a PPEN structure that specifies the physical pen that is used to draw scan lines.
- lpPBrush
- Address of a PBRUSH structure that specifies the physical brush that is used to draw the scan lines.
- lpDrawMode
- Address of a DRAWMODE structure that contains information to use when drawing, such as binary-raster operation, background mode, and foreground and background color.
- lpClipRect
- Address of a RECT structure that contains coordinates for the clipping rectangle. If this parameter is NULL, the clipping rectangle is the entire display surface.
Output draws a scan line from the starting point up to, but not including, the ending point. The function draws all lines with the brush pointed to by lpPBrush, or by the pen pointed to by lpPPen if lpPBrush is NULL. If Output uses the pen that is used to draw the scan lines, it should not dither the pen color.
See Also
Output(OS_POLYSCANLINE), PDEVICE, PBITMAP, DRAWMODE, RECT, POINT