Package ilcd
Class Draw

Public Method drawLine

static void drawLine(int endX, int endY)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Parameter Range Description
endX 0 ... display width - 1 horizontal ending position of the line
endY 0 ... display height - 1 vertical ending position of the line

Draws a line with the currently selected Line Style (see Attribute.setLineStyle(int)) starting from the current cursor position to the specified ending point.

Note

Example

Draw.drawLine(799, 479);

Draws a line from the top left corner to the lower right corner, assuming the cursor position was 0/0 before this method was issued and the display has a resolution of 800x480 pixels.

See also:

Draw.drawRectangle(int, int, int)
Draw.drawCircle(int)
Control.getCursorPosition()
Attribute.setForegroundColor(int)
Attribute.setInverseMode(boolean)
Attribute.setLineStyle(int)