GrBitmap

Name

GrBitmap -- Draw a bitmap

Synopsis

void GrBitmap (
  GR_DRAW_ID  id,
  GR_GC_ID    gc,
  GR_COORD    x,
  GR_COORD    y,
  GR_SIZE     width,
  GR_SIZE     height
  GR_BITMAP * bitmaptable
);

Parameters

id

The ID of the window or other drawable area.

gc

The graphics context to use when drawing the bitmap.

x, y

The location in the drawable area to draw the upper left corner of bitmap.

widht, height

The dimensions of the bitmap in pixels.

bitmaptable

A pointer to a one-bit-per-pixel bitmap.

Description

The GrBitmap function draws a bitmap at the (x, y) coordinates of the drawable area using the gc graphics context. One bits in bitmaptable get drawn with the graphics context foreground color. If you set the usebackround mode for the graphics context, then zero bits in the bitmap get draw with the graphics context background color.