-
Notifications
You must be signed in to change notification settings - Fork 2
/
CColorRef.h
32 lines (28 loc) · 869 Bytes
/
CColorRef.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef CCOLORREF_H
#define CCOLORREF_H
class ColorRef
{
COLORREF m_color;
public:
ColorRef();
ColorRef(const int&, const int&, const int&);
ColorRef(const COLORREF& clr);
ColorRef(const ColorRef& clr);
//±m¦â
void iRGB(const int&, const int&, const int&);
const COLORREF oRGB() const;
const unsigned char R() const;
const unsigned char G() const;
const unsigned char B() const;
//Åܦâ
const COLORREF Shift(int shift = 55) const;
const COLORREF Invrt() const;
//¦Ç¶¥
void iGray(const int&);
//¹Bºâ¤l
public: void operator= (const ColorRef& clr);
const BOOL operator==(const ColorRef& clr) const;
private: void checkColor(const int& r, const int& g, const int& b) const;
const BOOL checkInv(const int&) const;
};
#endif