Render an image
#include <gf/gf.h> extern int gf_draw_image( gf_context_t context, const uint8_t *pixels, gf_format_t format, unsigned stride, int x, int y, unsigned w, unsigned h, unsigned flags );
The GF_FORMAT_PAL8 format isn't supported by this function. |
gf
This function renders an image using the given draw context at the position x, y. There may be padding bytes between successive lines. These padding bytes are accounted for in the stride.
This function is provided for convenience only. It will always use a software blit to render an image, as the type of memory which holds the image data is unknown. |
QNX Graphics Framework
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |