Package ilcd
Class Draw

Public Method writeScanLineAndAdvance

static void writeScanLineAndAdvance(int noOfPixels, short[] pixelData)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Parameter Range Description
noOfPixels 1 ... display width number of pixels to write
pixelData 0x0000 ... 0xFFFF color value for pixels

Writes a horizontal scan line consisting of noOfPixels pixels onto the screen.

Note

Example

short[] pixelData = new short[] { 0x00, (short) 0xFFFF,
                                  0xF8, (short) 0xFFFF,
                                  0xF8, (short) 0xFFFF,
                                  0x00 };

Draw.writeScanLineAndAdvance(7, pixelData);

This example will write 7 pixels to the screen, starting from the current cursor position. The first and the last pixel are black, pixels in between are white or red alternatingly.

See also:

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