TftEllipse(wX_Center As Word, wY_Center As Word, bRadiusH As Byte, bRadiusV As Byte, pSolid As Bit, wColor As Word, bWidth As Byte, sbDirection As SByte)
wX_Center: X-coordinate of the ellipse center
wY_Center: Y-coordinate of the ellipse center
bRadiusH: Horizontal radius of the ellipse (in pixels)
bRadiusV: Vertical radius of the ellipse (in pixels)
pSolid: Ellipse fill type:
• 0: No fill
• 1: Solid fill
wColor: Ellipse color in 16-bit 565 RGB format (applies to fill or outline)
bWidth: Ellipse outline thickness in pixels:
• 0: No additional width (1-pixel wide outline)
• Other values specify outline width
sbDirection: Direction for additional outline width:
• 1: Outward
• -1: Inward
• Other values are ignored if there is no additional width
Draws an ellipse with the given center coordinates, horizontal and vertical radii.
If pSolid is set to 1, the ellipse is filled with the specified color. If set to 0, the ellipse is outlined. The outline can have additional width, which can be directed inward or outward.
Note:
If you need a thick shell ellipse, using bWidth and sbDirection can be slow. A faster alternative is to draw a solid color ellipse and then, within the same center, draw a smaller ellipse with the background color. This method is much faster but may erase the background, making it unsuitable for all situations.
Example:
TftSetUp(0) TftResetScreen(BLACK) TftEllipseE(90,60,80,40,GREEN) TftEllipseS(240,80,60,20,YELLOW) TftEllipse(140,170,120,50,0,BLUE,4,1) |
Created with the Personal Edition of HelpNDoc: Bring your WinHelp HLP help files into the present with HelpNDoc's easy CHM conversion