Windows 3.1 Device Drivers (ddag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Output(OS_ELLIPSE)
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
WORD Output(lpDestDev, OS_ELLIPSE, 2, lpPoints, lpPPen, lpPBrush,
            lpDrawMode, lpClipRect)
LPPDEVICE lpDestDev;
LPPOINT lpPoints;
LPPPEN lpPPen;
LPPBRUSH lpPBrush;
LPDRAWMODE lpDrawMode;
LPRECT lpClipRect;
 
The OS_ELLIPSE style specifies that the Output function draws an ellipse.
Since the resulting figure is closed, Output fills the figure as well as
draws the border. GDI calls this function when an application calls the
Ellipse function (GDI.24).
 
A graphics driver must support this style if the CC_ELLIPSES value is set in
the dpCurves member of the GDIINFO structure.
 
Parameter   Description
────────────────────────────────────────────────────────────────────────────
 
 
lpDestDev   Points to a PDEVICE or PBITMAP structure specifying the
            destination device or bitmap.
 
lpPoints    Points to an array containing two POINT structures. The elements
            of the array are defined as follows.
 
            Index  Description
            ────────────────────────────────────────────────────────────────
            0      Upper-left corner of the bounding rectangle.
 
            1      Lower-right corner of the bounding rectangle.
 
lpPPen      Points to a PPEN structure specifying the physical pen to draw
            the border.
 
lpPBrush    Points to a PBRUSH structure specifying the physical brush to
            fill the ellipse.
 
lpDrawMode  Points to a DRAWMODE structure containing information when
            drawing the border and filling the interior.
 
lpClipRect  Points to a RECT structure containing coordinates for the
            clipping rectangle. If the lpClipRect parameter is NULL, the
            clipping rectangle is the entire display surface.
 
Return Value
 
The return value is 1 if the function draws the ellipse. Otherwise, it is 0
if the function encounters an unrecoverable error. The return value is -1 if
the function cannot draw the specified circle and wants GDI to simulate it.
 
Comments
 
Output draws the ellipse by first filling the interior then drawing the
border. The center of the ellipse is at the center of the bounding
rectangle; the semi-major and semi-minor axes of the ellipse are equal to
half the width and height of the rectangle.
 
See Also
 
Output(OS_CIRCLE)