Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_draw_image.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_draw_image.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_draw_image.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_draw_image.html on line 8
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 );
- context
- Handle for the draw context to use.
- pixels
- A pointer to a buffer that contains the image data.
- format
- The pixel format of the image. See gf_format_t for supported formats.
|
The GF_FORMAT_PAL8 format isn't supported by this function.
|
- stride
- The image stride, which is the number of bytes per scanline. This is only required if the image height is greater than one.
- x, y
- The coordinates of the upper-left corner of the destination of the rendered image.
- w, h
- The width and height of the image, in pixels.
- flags
- Flags affecting rendering. No flags are currently defined; pass this argument as 0.
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. |
- GF_ERR_OK
- Success.
- GF_ERR_PARM
- Invalid format.
- GF_ERR_NOLOCK
- The hardware isn't locked; check to ensure gf_draw_begin() was called successfully.
QNX Graphics Framework
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
gf_draw_bitmap()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_draw_image.html on line 174
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_draw_image.html on line 174