#pragma pack(push,1) struct BMPColor { uint8_t blue; uint8_t green; uint8_t red; uint8_t _a; }; struct BMPImage { uint16_t width; uint16_t height; uint16_t bpp; struct BMPColor colors[256]; char *memoryStart; uint16_t transparentColor; }; #pragma pack(pop)