29 Image(uint32_t w,uint32_t h);
33 void setPixel(uint32_t x,uint32_t y,uint8_t val);
34 uint8_t
getPixel(uint32_t x,uint32_t y)
const;
35 void writeChar(uint32_t x,uint32_t y,
char c,uint8_t fg);
37 void drawHorzLine(uint32_t y,uint32_t xs,uint32_t xe,uint8_t colIndex,uint32_t mask);
38 void drawHorzArrow(uint32_t y,uint32_t xs,uint32_t xe,uint8_t colIndex,uint32_t mask);
39 void drawVertLine(uint32_t x,uint32_t ys,uint32_t ye,uint8_t colIndex,uint32_t mask);
40 void drawVertArrow(uint32_t x,uint32_t ys,uint32_t ye,uint8_t colIndex,uint32_t mask);
41 void drawRect(uint32_t x,uint32_t y,uint32_t
width,uint32_t
height,uint8_t colIndex,uint32_t mask);
42 void fillRect(uint32_t x,uint32_t y,uint32_t
width,uint32_t
height,uint8_t colIndex,uint32_t mask);
45 uint32_t
width()
const;
51 std::unique_ptr<Private>
p;
59 const uint8_t *greyLevels,
const uint8_t *alphaLevels,
60 int saturation,
int hue,
int gamma);
65 static void hsl2rgb(
double h,
double s,
double l,
66 double *pRed,
double *pGreen,
double *pBlue);
69 std::unique_ptr<Private>
p;
static void hsl2rgb(double h, double s, double l, double *pRed, double *pGreen, double *pBlue)
ColoredImage(uint32_t width, uint32_t height, const uint8_t *greyLevels, const uint8_t *alphaLevels, int saturation, int hue, int gamma)
std::unique_ptr< Private > p
bool save(const QCString &fileName)
void drawVertLine(uint32_t x, uint32_t ys, uint32_t ye, uint8_t colIndex, uint32_t mask)
void setPixel(uint32_t x, uint32_t y, uint8_t val)
std::unique_ptr< Private > p
void drawHorzLine(uint32_t y, uint32_t xs, uint32_t xe, uint8_t colIndex, uint32_t mask)
void drawVertArrow(uint32_t x, uint32_t ys, uint32_t ye, uint8_t colIndex, uint32_t mask)
void fillRect(uint32_t x, uint32_t y, uint32_t width, uint32_t height, uint8_t colIndex, uint32_t mask)
void drawHorzArrow(uint32_t y, uint32_t xs, uint32_t xe, uint8_t colIndex, uint32_t mask)
void drawRect(uint32_t x, uint32_t y, uint32_t width, uint32_t height, uint8_t colIndex, uint32_t mask)
void writeString(uint32_t x, uint32_t y, const QCString &s, uint8_t fg)
bool save(const QCString &fileName)
void writeChar(uint32_t x, uint32_t y, char c, uint8_t fg)
uint8_t getPixel(uint32_t x, uint32_t y) const
static uint32_t stringLength(const QCString &s)
friend uint32_t stringLength(const QCString &s)
Image(uint32_t w, uint32_t h)
This is an alternative implementation of QCString.
#define NON_COPYABLE(cls)
Macro to help implementing the rule of 5 for a non-copyable & movable class.
This file contains a number of basic enums and types.