Draw a bitmap
#include <gf/gf.h> int gf_draw_bitmap( gf_context_t context, const uint8_t *image, unsigned stride, unsigned bit0_offset, int x, int y, unsigned w, unsigned h, unsigned flags );
gf
This function draws a bitmap using the given draw context at the position x, y. Bitmaps are simple, one-bit-per-pixel images that are described by a series of bytes, each packing 8 pixels per byte. There may be padding bytes between successive lines. These padding bytes are accounted for in the stride. The bitmap uses the current foreground color as the “on” color (high bits) and the current background color as the “off” color (low bits — if the transparent member in the bitmap structure isn't set).
This function ignores any ROP and pattern that has been set for the draw context. |
QNX Graphics Framework
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
gf_draw_blit1(), gf_draw_blit2(), gf_draw_blitscaled()