Files

25 lines
499 B
C++
Raw Permalink Normal View History

2024-08-15 18:40:30 +08:00
#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