CLASS NAME

pixel_buffer

INHERITS FROM

- none -

INSTANCE VARIABLES

long mode
short bytes_per_row
How many bytes used for each row of pixels
short width
How many pixels wide
short height
How many pixels high
unsigned char *pixels
The actual pixel data

CONSTRUCTORS

pixel_buffer()
pixel_buffer(const int width, const int height, const long mode=0)

PUBLIC INTERFACE

draw_y_line
void draw_y_line(const int x,const int ystart,
const int yend,const int col)

Draws a vertical line starting at the specified x position and ystart, and ending at the yend position. It will be drawn in the specified color.

PutPixel

void PutPixel(const int x, const int y, const unsigned char pixval)

Set the value of the pixel located at the x,y position to the specified value. Range checking is performed, so if the x,y coordinates are outside the bounds of the pixel_buffer, then no pixel will be set.

PROTECTED INTERFACE

- none -

PRIVATE INTERFACE

- none -