TftRectangle(wX_1 As Word, wY_1 As Word, wX_3 As Word, wY_3 As Word, pSolid As Bit, wColor As Word, bWidth As Byte, sbDirection As SByte)
wX_1: X-coordinate of Corner 1
wY_1: Y-coordinate of Corner 1
wX_3: X-coordinate of Corner 3
wY_3: Y-coordinate of Corner 3
pSolid: Rectangle fill type:
• 0: No fill
• 1: Solid fill
wColor: Fill or outline color in 16-bit 565 RGB format
bWidth: Outline thickness in pixels:
• 0: No additional width (1-pixel wide)
• Other values specify the additional outline width
sbDirection: Direction for the additional outline width:
• 1: Outward
• -1: Inward
• Other values are ignored if there is no additional width
Draws a rectangle with optional fill and outline, defined by two opposite corners.
The outline width and direction can be customized.
Example:
TftSetUp(0) TftResetScreen(BLACK) TftRectangle(10,10,65,50,0,GREEN,2,-1) TftRectangleENTC(80,10,120,50,RED) TftRectangleETTCO(130,10,200,50,BLUE,3) TftRectangleETTCI(210,10,280,50,WHITE,4) TftRectangleSNTC(10,60,65,100,CYAN) TftRectangleENCP(110,100,60,50,PINK) TftRectangleETCPO(180,100,60,50,VIOLET,3) TftRectangleETCPI(270,100,60,50,BROWN,3) TftRectangleSNCP(50,210,60,50,YELLOW) TftRectangleRC(90,150,140,200,10,0,ORANGE,0,0) TftRectangleRC(150,150,210,200,15,0,LEMON,2,-1) TftRectangleRC(220,150,310,220,12,1,DARKGREY,0,0) |
Created with the Personal Edition of HelpNDoc: Easily create Qt Help files