25 lines
499 B
C++
25 lines
499 B
C++
#ifndef SAMPLEUTILS_H
|
|
#define SAMPLEUTILS_H
|
|
|
|
class SampleUtils{
|
|
|
|
private:
|
|
|
|
SampleUtils();
|
|
|
|
public:
|
|
|
|
static unsigned char convert1BitTo8Bit(unsigned char color);
|
|
|
|
static unsigned char convert2BitTo8Bit(unsigned char color);
|
|
|
|
static unsigned char convert4BitTo8Bit(unsigned char color);
|
|
|
|
static unsigned char convert16BitTo8Bit(unsigned short color);
|
|
|
|
static unsigned int convertRGBtoBrightness(unsigned int color);
|
|
|
|
};
|
|
|
|
#endif // SAMPLEUTILS_H
|