create_sub_bitmap man page on DragonFly

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

create_sub_bitmap(3)		Allegro manual		  create_sub_bitmap(3)

NAME
       create_sub_bitmap  - Creates a memory sub bitmap. Allegro game program‐
       ming library.

SYNOPSIS
       #include <allegro.h>

       BITMAP *create_sub_bitmap(BITMAP *parent, int x, y, width, height);

DESCRIPTION
       Creates a sub-bitmap, ie. a bitmap sharing drawing memory with  a  pre-
       existing	 bitmap,  but possibly with a different size and clipping set‐
       tings. When creating a sub-bitmap of the mode-X screen, the x  position
       must  be a multiple of four. The sub-bitmap width and height can extend
       beyond the right and bottom edges of the parent (they will be clipped),
       but the origin point must lie within the parent region.

RETURN VALUE
       Returns	a pointer to the created sub bitmap, or NULL if the sub bitmap
       could not be created. Remember to free the sub  bitmap  before  freeing
       the parent bitmap to avoid memory leaks and potential crashes accessing
       memory which has been freed.

SEE ALSO
       create_bitmap(3), create_bitmap_ex(3),  destroy_bitmap(3),  is_sub_bit‐
       map(3),	 clear_bitmap(3),  clear_to_color(3),  expat(3),  exscroll(3),
       exswitch(3)

Allegro				 version 4.4.2		  create_sub_bitmap(3)
[top]

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]
Tweet
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