summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-07-14 18:17:37 +0300
committerTor Lillqvist <tlillqvist@novell.com>2011-07-14 18:17:37 +0300
commit490b499531f76f07830aa0c4266d0a89cc9b61f8 (patch)
tree7c9d5d4466a4532548afc44d4569f13e9591d14f /external
parentc25d059a8b70c2afa566c0c555d5d477a40ba935 (diff)
Add constructor and GetValue() method to the Color class
Diffstat (limited to 'external')
-rw-r--r--external/gdiplus/include/gdipluscolor.h10
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;
};