TftRectangleRCMS()

Library Description ›› Shapes ›› Rectangle ››
Parent Previous Next

Syntax

TftRectangleRCMS(wX_1 As Word, wY_1 As Word, wX_3 As Word, wY_3 As Word, bRadius As Byte, bMask As Byte, wColor As Word)

Parameters

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

bRadius — Radius for rounded corners

bMask — corner bit mask - bit0=TopLeft, bit1=TopRight, bit2=BottomRight, bit3=BottomLeft

                                     (1 = that corner is rounded, 0 = that corner stays sharp)

wColor — Fill color in 16-bit RGB565 format


Draws a solid rectangle with rounded corners between two opposite vertices, with independently selectable rounded corners.

Example

TftSetUp(0, 0)

TftResetScreen(BLACK)

TftRectangleRCME(20,30,60,50,8,%00000101,RED)

TftRectangleRCMS(120,130,160,150,8,%00001010,GREEN)

Created with the Personal Edition of HelpNDoc: Full-featured EBook editor