TftEllipse()

Library Description ›› Shapes ›› Ellipse ››
 visits
Parent Previous Next

Syntax

TftEllipse(wX_Center As Word, wY_Center As Word, bRadiusH As Word, bRadiusV As Word, pSolid As Bit, wColor As Word, bWidth As Byte, sbDirection As SByte)

Parameters

Parameter

Description

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 RGB565 format (applies to fill or outline)

bWidth

Ellipse outline thickness in pixels:
0: No additional width (1-pixel wide outline)

Overview

sbDirection — Direction for additional outline 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.

Notes

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, 0)

TftResetScreen(BLACK)

TftEllipseE(90,60,80,40,GREEN)

TftEllipseS(240,80,60,20,YELLOW)

TftEllipse(140,170,120,50,0,BLUE,4,1)

TftEllipse()

Created with the Personal Edition of HelpNDoc: Benefits of a Help Authoring Tool