VGA

readArea()

Description

Reads area in a screen

Syntax

VGA.readArea(x, y, width, height, dest)

Parameters

x - x coordinate
y - y coordinate
width - width of area from x
height - height of area from y
dest - pixels to be read within an area

Returns

none

Example

#define SCORECHARS 6
#define SCOREX 90
#define SCOREY 40

unsigned char scorearea[ 9 * ((8* SCORECHARS)+1) ];

VGA.readArea( SCOREX, SCOREY, (8*SCORECHARS)+1, 8+1, scorearea);

See also

  

Share |