summaryrefslogtreecommitdiff
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
commit3b3f8431197dcf9d940ecb57868a931ec74dc472 (patch)
treea4487682a8d0af4a28457f77e11b7e73fdb01123
parent47552a91153222c86789bf0ed3215e6650d95aee (diff)
Add constructor and GetValue() method to the Color class
-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 39b7cb6..47a2e04 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;
};