#include <Bitmap.hpp>
Public Member Functions | |
Bitmap_Lock (ALLEGRO_LOCKED_REGION *region_, ALLEGRO_BITMAP *bitmap_) | |
Creates a Bitmap_Lock from the specified Allegro region and bitmap. | |
Pixel_Format | Format () const |
Returns the pixel format for the locked region. | |
int | Pitch () const |
Returns the pitch of the locked bitmap. | |
void * | Data () const |
Returns the raw image data. | |
operator void * () const | |
Returns the raw image data. | |
~Bitmap_Lock () | |
Unlocks the bitmap and updates the video memory. |
Locked Bitmap region.
a5::Bitmap_Lock::Bitmap_Lock | ( | ALLEGRO_LOCKED_REGION * | region_, | |
ALLEGRO_BITMAP * | bitmap_ | |||
) | [explicit] |
Creates a Bitmap_Lock from the specified Allegro region and bitmap.
a5::Bitmap_Lock::~Bitmap_Lock | ( | ) |
Unlocks the bitmap and updates the video memory.
Pixel_Format a5::Bitmap_Lock::Format | ( | ) | const |
Returns the pixel format for the locked region.
int a5::Bitmap_Lock::Pitch | ( | ) | const |
Returns the pitch of the locked bitmap.
void* a5::Bitmap_Lock::Data | ( | ) | const |
Returns the raw image data.
a5::Bitmap_Lock::operator void * | ( | ) | const |
Returns the raw image data.