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
|
||||
|
||||
/* FIXME: missing the methods. */
|
||||
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:
|
||||
ARGB Argb;
|
||||
};
|
||||
|
Reference in New Issue
Block a user