php man page for stretch_sprite

Query: stretch_sprite

OS: php

Section: 3alleg4

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

stretch_sprite(3alleg4) 					  Allegro manual					   stretch_sprite(3alleg4)

NAME
stretch_sprite - Stretches a sprite to the destination bitmap. Allegro game programming library.
SYNOPSIS
#include <allegro.h> void stretch_sprite(BITMAP *bmp, BITMAP *sprite, int x, int y, int w, int h);
DESCRIPTION
Like draw_sprite(), except it can stretch the sprite image to the specified width and height and requires the sprite image and destination bitmap to be of the same color depth. Moreover, the sprite image must be a memory bitmap. Example: /* Create tunnel like effect. */ for (step = 1; step int width = SCREEN_W / step; int height = SCREEN_H / step; stretch_sprite(screen, image, SCREEN_W / 2 - width / 2, SCREEN_H / 2 - height / 2, width, height); }
SEE ALSO
draw_sprite(3alleg4), stretch_blit(3alleg4), bitmap_mask_color(3alleg4) Allegro version 4.4.2 stretch_sprite(3alleg4)
Related Man Pages
draw_sprite(3alleg4) - debian
draw_sprite_h_flip(3alleg4) - debian
draw_character_ex(3alleg4) - suse
draw_sprite(3alleg4) - mojave
draw_sprite(3alleg4) - netbsd
Similar Topics in the Unix Linux Community
Simple rules of the UNIX.COM forums:
User Guide: Posting in the Emergency Forum
New Code Tags (Syntax Highlighting)
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
Denial Of Service Attack Update