diff options
Diffstat (limited to 'external')
-rw-r--r-- | external/gdiplus/include/gdipluscolor.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/external/gdiplus/include/gdipluscolor.h b/external/gdiplus/include/gdipluscolor.h index 39b7cb6debd4..47a2e0433c9b 100644 --- a/external/gdiplus/include/gdipluscolor.h +++ b/external/gdiplus/include/gdipluscolor.h @@ -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; }; |