Line Direction

0 = Line is drawn from the top left to the bottom right corner of the enclosing virtual rectangle

StartX = X position of this object

StartY = Y position of this object

EndX = StartX + width - line width

EndY = StartY + height - line width

NOTE 1: If EndX < StartX, then EndX = StartX

NOTE 2: If EndY < StartY, then EndY = StartY

1 = Line is drawn from the bottom left to the top right corner of the enclosing virtual rectangle

StartX = X position of this object

StartY = Y position of this object + height - line width

EndX = StartX + width - line width

EndY = Y position of this object

NOTE 3: If EndX < StartX, then EndX = StartX

NOTE 4: If StartY < EndY, then StartY = EndY