[Previous] [Contents] [Next]

my_bitmap()

draw a bitmap

Synopsis:

int my_bitmap( int x, int y, 
               char *bits, 
               int xoff, int yoff, 
               int xsize, int ysize, 
               int bpl );

Description:

This function draws a bitmap, using the current color specified in the _doc_ctrl structure. The arguments are as follows:

x, y
The location at which to draw the bitmap, in source coordinates If printing is done in landscape mode, you'll need to swap the x and y coordinates.
bits
A pointer to the bitmap.
xoff, yoff
Offsets into the bitmap.
xsize, ysize
The size of the bitmap.
bpl
The number of bytes per line of the bitmap.

You'll need to convert x, y, xoff, yoff, xsize, and ysize from source to printer coordinates.

Returns:

1
Success.
0
The bitmap couldn't be drawn; the render library will do it.

Classification:

Photon

Safety:
Interrupt handler Not applicable
Signal handler Not applicable
Thread Not applicable

[Previous] [Contents] [Next]