TftLine()

Library Description ›› Shapes ›› Line ››
Parent Previous Next

TftLine(wX_Start As Word, wY_Start As Word, wX_Stop As Word, wY_Stop As Word, wColor As Word, bWidth As Byte, sbDirection As SByte)


wX_Start = X start coordinate

wY_Start = Y start coordinate

wX_Stop = X stop coordinate

wY_Stop = Y stop coordinate

wColor = 16-bit color in 565 RGB format

bWidth = Additional width of the line in pixels. 0 means no additional width (i.e., 1 pixel wide).

sbDirection = Pixel position to form the additional width relative to the line direction:

Horizontal Line:

 -1 = Expand downwards

1 = Expand upwards

Else = Ignored (no additional width)

Vertical Line:

-1 = Expand left

1 = Expand right

Else = Ignored (no additional width)

Diagonal Line:

-1 = Expand left

1 = Expand right

Else = Ignored (no additional width)


Print a line with optional expansion.


Example: 

TftLine(10,5, 120,20, GREEN, 2, -1)


TftSetUp(0)

TftResetScreen(BLACK)

TftLineHN(10,90,5,GREEN)

TftLineHTU(100,190,5,GREEN,3)

TftLineHTD(200,290,5,GREEN,3)

TftLine(10,10,120,70,RED,3,-1)

TftLine(30,10,140,70,RED,3,-1)

TftLineVN(150,10,70,BLUE)

TftLineVTL(160,10,70,BLUE,3)

TftLineVTR(170,10,70,BLUE,3)

TftLineDN(180,10,220,70,YELLOW)

TftLineDNF(190,10,230,70,PINK) 

TftLineDT(250,10,300,70,LIGHTGREY,3,-1)

TftLineDT(260,10,310,70,DARKGREY,3,1)

TftLineHNG(10,120,90,VIOLET,WHITE)

TftLineVNG(130,90,200,CYAN,RED)

TftLineDNG(140,90,270,200,BLUE,ORANGE)






Created with the Personal Edition of HelpNDoc: Single source CHM, PDF, DOC and HTML Help creation