stretch_blit man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

stretch_blit(3)			Allegro manual		       stretch_blit(3)

       stretch_blit  -	Scales	a rectangular area from one bitmap to another.
       Allegro game programming library.

       #include <allegro.h>

       void stretch_blit(BITMAP *source, BITMAP *dest, int source_x, source_y,
       source_width,	source_height,	 int   dest_x,	 dest_y,   dest_width,

       Like blit(), except it can scale images (so the source and  destination
       rectangles  don't need to be the same size) and requires the source and
       destination bitmaps to be of the same color depth. This routine doesn't
       do  as  much  safety  checking as the regular blit(): in particular you
       must take care not to copy from areas outside the  source  bitmap,  and
       you cannot blit between overlapping regions, ie. you must use different
       bitmaps for the source and the destination. Moreover, the  source  must
       be a memory bitmap. Example:

	  BITMAP *bmp;
	  /* Stretch bmp to fill the screen. */
	  stretch_blit(bmp, screen, 0, 0, bmp->w, bmp->h,
		       0, 0, SCREEN_W, SCREEN_H);

       blit(3),	 masked_stretch_blit(3), stretch_sprite(3), exalpha(3), excon‐
       fig(3), exscale(3), extrans(3), extrans2(3)

Allegro				 version 4.4.2		       stretch_blit(3)

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net