diff options
author | Tor Lillqvist <tlillqvist@novell.com> | 2011-07-14 18:17:37 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@novell.com> | 2011-07-14 18:17:37 +0300 |
commit | 490b499531f76f07830aa0c4266d0a89cc9b61f8 (patch) | |
tree | 7c9d5d4466a4532548afc44d4569f13e9591d14f /external | |
parent | c25d059a8b70c2afa566c0c555d5d477a40ba935 (diff) |
Add constructor and GetValue() method to the Color class
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; }; |