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_blitscaled.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_blitscaled.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_blitscaled.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_blitscaled.html on line 8
Perform a scaled blit
#include <gf/gf.h>
int gf_draw_blitscaled( gf_context_t context,
gf_surface_t ssurface,
gf_surface_t dsurface,
int sx1,
int sy1,
int sx2,
int sy2,
int dx1,
int dy1,
int dx2,
int dy2 );
- context
- The handle for draw context.
- ssurface
- The surface to copy from (source surface). If NULL, the context's currently targeted surface is used.
- dsurface
- The surface to copy to (destination surface). This surface can not be the same as ssurface. If NULL, the context's currently targeted surface is used.
- sx1, sy1, sx2, sy2
- The coordinates of the source area to blit from. The coordinates sx1,sy1 are the upper-left corner, and sx2,sy2 are the lower-right.
- dx1, dy1, dx2, dy2
- The coordinates of the destination area to blit to. This area may be larger or smaller than the source area — the blitted pixels are scaled accordingly.
gf
This function copies the rectangle defined by the source coordinates, from a source surface to a destination surface, scaling the source rectangle as necessary to fit the destination coordinates. The source and destination can not be the same surface.
|
If you are blitting on the same surface (that is, ssurface and dsurface point to the same surface), the source and destination rectangles can't overlap. If they do, the results are unpredictable. |
- GF_ERR_OK
- Success.
- GF_ERR_PARM
- Invalid source or destination rectangle.
- 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_blit1(),
gf_draw_blit2()
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_blitscaled.html on line 156
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_blitscaled.html on line 156