constexpr unsigned int kACanvas32AlphaOpaque
Alpha byte of a fully opaque 8888 colour.
Definition acanvas32.h:9
constexpr unsigned int kACanvas32ChannelsMask
Mask of the three colour channels of an 8888 pen colour.
Definition acanvas32.h:6
Description of a pixel rectangle, its layout, and its palette.
Definition abitmap.h:95
unsigned int GetPixelNativeU(int nX, int nY)
Read one point in the native width, with no clip test.
void GetColor24(unsigned char *pRGB)
Store the pen colour as three bytes in red, green, blue order.
void SetColorNative(unsigned int nColor)
Set the pen colour from a native value, which on this canvas is an 8888 word.
void DrawPixel24U(int nX, int nY, const unsigned char *pRGB)
Store one red, green, blue triple at one point, with no clip test.
unsigned int mColor
Definition acanvas32.h:241
unsigned short GetColor15()
Return the pen colour packed to 1555, with the alpha bit set.
void DrawPixel15U(int nX, int nY, unsigned short nColor)
Store one 1555 colour at one point, with no clip test.
void GetPixel24U(int nX, int nY, unsigned char *pRGB)
Read one point into three bytes in red, green, blue order, with no clip test.
void SetColor15(unsigned short nColor)
Discard a 1555 pen colour.
void SetColor8(int nIndex)
Set the pen colour from a palette index.
unsigned short GetPixel15U(int nX, int nY)
Read one point as a 1555 colour, with no clip test.
unsigned int GetColorNative()
Return the pen colour in the native width, which on this canvas is an 8888 word.
void SetColor32(unsigned int nColor)
Set the pen colour from an 8888 word.
ACanvas32(const ABitmap &bitmap)
Adopt a pixel description.
void DrawPixel8U(int nX, int nY, int nIndex)
Store one palette index at one point, with no clip test.
int GetColor8()
Return the palette index nearest the pen colour.
void SetColor24(const unsigned char *pRGB)
Set the pen colour from three bytes in red, green, blue order, with full alpha.
unsigned int GetColor32()
Return the pen colour as an 8888 word.
int GetPixel8U(int nX, int nY)
Read one point as a palette index, with no clip test.
void DrawPixelNativeU(int nX, int nY, unsigned int nColor)
Store one native value at one point, with no clip test.
ACanvas(const ABitmap &bitmap)
Adopt a pixel description.