WORD Output(
LPPDEVICE lpDestDev,
WORD wStyle,
WORD wCount,
LPPOINT lpPoints,
LPPEN lpPPen,
LPPBRUSH lpPBrush,
LPDRAWMODE lpDrawMode,
LPRECT lpClipRect
);
Draws the lines and figures specified by the wStyle parameter.
1 | Function was successful. |
0 | Unrecoverable error occurred. |
-1 | Function does not support the specified style. |
OS_ALTPOLYGON (22) | Draws a polygon and fills it using the alternate-filling method. |
OS_ARC (3) | Draws an arc. |
OS_BEGINNSCAN (80) | Begins a series of scan lines. |
OS_CHORD (39) | Draws a closed figure consisting of an arc and the chord connecting the endpoints of the arc. |
OS_CIRCLE (55) | Draws a circle. |
OS_ELLIPSE (7) | Draws an ellipse. |
OS_ENDNSCAN (81) | Ends a series of scan lines. |
OS_PIE (23) | Draws a closed figure consisting of an arc and two line segments connecting the endpoints of the arc to the centerpoint of the arc's bounding rectangle. |
OS_POLYBEZIER (1) | Draws a Bezier spline. |
OS_POLYLINE (18) | Draws a set of connected line segments. |
OS_POLYSCANLINE (5) | Draws a set of horizontal line segments. |
OS_RECTANGLE (6) | Draws a rectangle. |
OS_ROUNDRECT (72) | Draws a rectangle with round corners. |
OS_SCANLINES (4) | Draws a set of horizontal line segments. |
OS_WINDPOLYGON (20) | Draws a polygon and fill it using the winding-number-filling method. |
For a full description of each style, see the following Output descriptions.
The export ordinal for this function is 8.
GDI calls this function when an application calls functions, such as LineTo, Rectangle, and Ellipse.
Every graphics driver must export an Output function.
Output uses the binary-raster operation, background mode, and background color specified by the DRAWMODE structure to draw lines and scan lines. Output uses the binary-raster operation to determine how to combine pen or brush colors with the existing color on the display surface. The function uses background mode to determine how to fill gaps in styled lines or hatched brushes. If the background mode is OPAQUE, Output combines the background color with the existing color in the gaps. If the background mode is TRANSPARENT, Output leaves the existing color unchanged. For all pen or brush styles other than styled lines and hatched brushes, Output draws as if the background mode is OPAQUE regardless of the actual background mode.
Output uses the lpClipRect parameter only if the driver has set either the CP_RECTANGLE or CP_REGION value in the dpClip member of the GDIINFO structure. Output ensures that the coordinates specified by the lpClipRect parameter do not extended beyond the boundaries of the display surface.
DRAWMODE, PDEVICE, PBITMAP, POINT, RECT