This function fills a rectangular area with a monochrome bitmap. Bits with a value of 1 are drawn in the current foreground color of the specified graphics context. Bits with a value of 0 are drawn in the background color of the graphics context if the usebackground flag is set in the GC, otherwise 0 bits have no effect on the drawable. The image data should be an array of aligned 16 bit words.
Type | Name | Description |
---|---|---|
GR_DRAW_ID | id | The ID of the drawable to draw the bitmap onto. |
GR_GC_ID | gc | The ID of the graphics context to use when drawing the bitmap. |
GR_COORD | x | The X coordinate to of the rectangular area that the bitmap will be drawn in, relative to the drawable. |
GR_COORD | y | The Y coordinate to of the rectangular area that the bitmap will be drawn in, relative to the drawable. |
GR_SIZE | width | The width of the rectangle that the bitmap will be drawn in. |
GR_SIZE | height | The height of the rectangle that the bitmap will be drawn in. |
GR_BITMAP* | imagebits | An array of 16 bit words that define the bitmap image. |