enum Orientation
{
ORIENTATION_UNKNOWN = -1,
ORIENTATION_NORTH,
ORIENTATION_WEST,
ORIENTATION_SOUTH,
ORIENTATION_EAST
}
Pixel Color (int red, int green, int blue)
Pixel Color (const COLORREF &color)
Surface * LoadImage (DisplayDevice *display, const TCHAR *filename)
Surface * LoadImage (DisplayDevice *display, unsigned resourceID, const TCHAR *resclass, HINSTANCE hModule)
Surface * LoadImage (DisplayDevice *display, const uint8_t *pBegin, const uint8_t *pEnd)
bool SaveImage (const Surface *surface, const TCHAR *filename)
Point operator+ (const Point &a, const Point &b)
Point operator- (const Point &a, const Point &b)
const Pixel RED_MASK = 0x1F << 11
const Pixel GREEN_MASK = 0x3F << 5
const Pixel BLUE_MASK = 0x1F
const int RED_SHIFT = 11
const int GREEN_SHIFT = 5
const int BLUE_SHIFT = 0
const int RED_BITS = 5
const int GREEN_BITS = 6
const int BLUE_BITS = 5
color
int green,
int blue
) [inline]
red
green
blue
const uint8_t * pBegin,
const uint8_t * pEnd
)
display
pBegin
pEnd
Surface
*
unsigned resourceID,
const TCHAR * resclass = _T("image"),
HINSTANCE hModule = 0
)
display
resourceID
resclass
hModule
Surface
*
const TCHAR * filename
)
display
filename
Surface
*
const Point & b
) [inline]
a
b
const Point & b
) [inline]
a
b
const TCHAR * filename
)
surface
filename
bool