1masked_stretch_blit(3) Allegro manual masked_stretch_blit(3)
2
3
4
6 masked_stretch_blit - Scales a rectangular area skipping pixels with
7 the mask color. Allegro game programming library.
8
10 #include <allegro.h>
11
12
13 void masked_stretch_blit(BITMAP *source, BITMAP *dest, int source_x,
14 source_y, source_w, source_h, int dest_x, dest_y, dest_w, dest_h);
15
17 Like masked_blit(), except it can scale images (so the source and des‐
18 tination rectangles don't need to be the same size). This routine
19 doesn't do as much safety checking as the regular masked_blit(): in
20 particular you must take care not to copy from areas outside the source
21 bitmap. Moreover, the source must be a memory bitmap. Example:
22
23 BITMAP *hud_overlay;
24 ...
25 /* Stretch hud overlay over the screen. */
26 masked_stretch_blit(hud_overlay, screen, 0, 0,
27 hud_overlay->w, hud_overlay->h,
28 0, 0, SCREEN_W, SCREEN_H);
29
30
32 blit(3), masked_blit(3), stretch_blit(3), stretch_sprite(3)
33
34
35
36Allegro version 4.2.2 masked_stretch_blit(3)