Add constructor and GetValue() method to the Color class
This commit is contained in:
10
external/gdiplus/include/gdipluscolor.h
vendored
10
external/gdiplus/include/gdipluscolor.h
vendored
@@ -30,9 +30,17 @@ enum ColorChannelFlags
|
|||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
||||||
/* FIXME: missing the methods. */
|
|
||||||
class Color
|
class Color
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
|
Color(BYTE a, BYTE r, BYTE g, BYTE b)
|
||||||
|
{
|
||||||
|
Argb = (((a<<24)&0xFF000000) | ((r<<16)&0x00FF0000) | ((g<<8)&0x0000FF00) | (b&0x000000FF));
|
||||||
|
}
|
||||||
|
ARGB GetValue() const
|
||||||
|
{
|
||||||
|
return Argb;
|
||||||
|
}
|
||||||
protected:
|
protected:
|
||||||
ARGB Argb;
|
ARGB Argb;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user