Package ilcd
Class Draw

Public Method readScanLine

static void readScanLine(int noOfPixels, short[] data)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Parameter Range Description
noOfPixels 1 ... display width number of pixel to be scanned

Reads the color information of noOfPixels pixels in a horizontal line from left to right, starting from the current cursor position.

Note


Returns Range Description
data[0] ... 0x0000 ... 0xFFFF run-length encoded data

Example

short[] data = new short[2 * 1024];

Draw.readScanLine(5, data);

In this example a line of 5 pixels has been scanned.

See also:

Draw.writeScanLine(int, short[])
Draw.read1D2DRunLengthEncodedScanLine(int, int)
Draw.write1D2DRunLengthEncodedScanLine(int, int, int, byte[])
16-Bit Color Values