ALLEGRO_LOCKED_REGION - Man Page

Allegro 5 API

Synopsis

#include <allegro5/allegro.h>

typedef struct ALLEGRO_LOCKED_REGION ALLEGRO_LOCKED_REGION;

Description

Users who wish to manually edit or read from a bitmap are required to lock it first. The ALLEGRO_LOCKED_REGION structure represents the locked region of the bitmap. This call will work with any bitmap, including memory bitmaps.

typedef struct ALLEGRO_LOCKED_REGION {
   void *data;
   int format;
   int pitch;
   int pixel_size;
} ALLEGRO_LOCKED_REGION;

See Also

al_lock_bitmap(3), al_lock_bitmap_region(3), al_unlock_bitmap(3), ALLEGRO_PIXEL_FORMAT(3)

Referenced By

al_lock_bitmap(3), al_lock_bitmap_region(3).

Allegro reference manual