My Project
|
#include <image.h>
Public Member Functions | |
ColoredImage (int width, int height, const uchar *greyLevels, const uchar *alphaLevels, int saturation, int hue, int gamma) | |
~ColoredImage () | |
bool | save (const char *fileName) |
Static Public Member Functions | |
static void | hsl2rgb (double h, double s, double l, double *pRed, double *pGreen, double *pBlue) |
Private Attributes | |
int | m_width |
int | m_height |
uchar * | m_data |
bool | m_hasAlpha |
Class representing a bitmap image colored based on hue/sat/gamma settings.
ColoredImage::ColoredImage | ( | int | width, |
int | height, | ||
const uchar * | greyLevels, | ||
const uchar * | alphaLevels, | ||
int | saturation, | ||
int | hue, | ||
int | gamma | ||
) |
Definition at line 492 of file image.cpp.
References hsl2rgb(), m_data, m_hasAlpha, m_height, and m_width.
ColoredImage::~ColoredImage | ( | ) |
|
static |
Definition at line 428 of file image.cpp.
Referenced by ColoredImage(), Image::Image(), and replaceColorMarkers().
bool ColoredImage::save | ( | const char * | fileName | ) |
Definition at line 525 of file image.cpp.
References LodePNG_InfoPng::color, LodePNG_InfoRaw::color, LodePNG_InfoColor::colorType, LodePNG_Encoder::infoPng, LodePNG_Encoder::infoRaw, LodePNG_encode(), LodePNG_Encoder_cleanup(), LodePNG_Encoder_init(), LodePNG_saveFile(), m_data, m_hasAlpha, m_height, and m_width.
Referenced by writeColoredImgData().
|
private |
Definition at line 67 of file image.h.
Referenced by ColoredImage(), save(), and ~ColoredImage().
|
private |
Definition at line 68 of file image.h.
Referenced by ColoredImage(), and save().
|
private |
Definition at line 66 of file image.h.
Referenced by ColoredImage(), and save().
|
private |
Definition at line 65 of file image.h.
Referenced by ColoredImage(), and save().