#include <Gdc2.h>
Public Member Functions | |
GSurface * | Create () |
Creates a memory DC of the image. | |
Public Attributes | |
int | X |
The width of the image. | |
int | Y |
The height of the image. | |
int | Bits |
The bitdepth of the image (8, 15, 16, 24, 32). | |
uint32 * | Data |
Pointer to the raw data. |
The easiest way I know of create the raw data for an GInlineBmp is to use i.Mage to load a file or create a image and then use the Edit->Copy As Code menu. Then paste into your C++ and put a uint32 array declaration around it. Then point the Data member to the uint32 array. Just be sure to get the dimensions right.
I use this for embeding resource images directly into the code so that a) they load instantly and b) they can't get lost as a separate file.