CGpGraphics.FillEllipsemethod
Uses a brush to fill the interior of an ellipse that is specified by coordinates and dimensions.
Syntax
FUNCTION FillEllipse (BYVAL pBrush AS CGpBrush PTR, BYVAL x AS SINGLE, BYVAL y AS SINGLE, BYVAL nWidth AS SINGLE, BYVAL nHeight AS SINGLE) AS GpStatus
FUNCTION FillEllipse (BYVAL pBrush AS CGpBrush PTR, BYVAL x AS INT_, BYVAL y AS INT_, BYVAL nWidth AS INT_, BYVAL nHeight AS INT_) AS GpStatus
FUNCTION FillEllipse (BYVAL pBrush AS CGpBrush PTR, BYVAL rcAS GpRectF) AS GpStatus
FUNCTION FillEllipse (BYVAL pBrush AS CGpBrush PTR, BYVAL rcAS GpRect) AS GpStatus
Parameters
| Name | Description | |
|---|---|---|
pBrush | Pointer to a Brush object that is used to paint the interior of the ellipse. | |
x | The x-coordinate of the upper-left corner of the rectangle that specifies the boundaries of the ellipse. | |
y | The y-coordinate of the upper-left corner of the rectangle that specifies the boundaries of the ellipse. | |
nWidth | The width of the rectangle that specifies the boundaries of the ellipse. | |
nHeight | The height of the rectangle that specifies the boundaries of the ellipse. |
Return value
If the function succeeds, it returns StatusOk, which is an element of the GpStatus enumeration.
If the function fails, it returns one of the other elements of the GpStatus enumeration.
Description
Uses a brush to fill the interior of an ellipse that is specified by coordinates and dimensions.
Example
' ======================================================================================== ' The following example fills an ellipse that is defined by coordinates and dimensions. ' ======================================================================================== SUB Example_FillEllipse (BYVAL hdc AS HDC)
' // Create a graphics object from the window device context DIM graphics AS CGpGraphics = hdc ' // Set the scale transform graphics.ScaleTransformForDpi
' // Create a SolidBrush object DIM blackBrush AS CGpSolidBrush = ARGB_BLACK
' // Fill the ellipse. graphics.FillEllipse(@blackBrush, 0, 0, 200.1, 100.4)
END SUB ' ========================================================================================
Reference
- Include file
CGpGraphics.inc - Defined in AfxNova/CGpGraphics.inc:761
- Documented in Graphics/GdiPlus Classes/CGpGraphics Classes.md
- Topic: CGpGraphics Class