#include <Gdc2.h>
Inheritance diagram for GMemDC:
Public Member Functions | |
GMemDC (int x=0, int y=0, int bits=0) | |
Creates a memory bitmap. | |
bool | IsScreen () |
Returns true if the surface is on the screen. | |
bool | Lock () |
Locks the bits for access. GMemDC's start in the locked state. | |
bool | Unlock () |
void | SetOrigin (int x, int y) |
Sets the surface origin. | |
void | Blt (int x, int y, GSurface *Src, GRect *a=NULL) |
Copy an image onto the surface. | |
void | StretchBlt (GRect *d, GSurface *Src, GRect *s=NULL) |
Not implemented. |
This class uses a block of memory to represent an image. You have direct pixel access as well as higher level functions to manipulate the bits.
|
Creates a memory bitmap.
|
|
Unlocks the bits to optimize for display. While the bitmap is unlocked you can't access the data for read or write. On linux this converts the XImage to pixmap. On other systems it doesn't do much. As a general rule if you don't need access to a bitmap after creating / loading it then unlock it. |