diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2010-01-29 14:38:09 +0100 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2010-01-29 14:38:09 +0100 |
commit | 37ef2539daa89d970db90dd16e1e90be349aa5dc (patch) | |
tree | 74aae873aca60b43b123a62cca1854ad8148f0c1 | |
parent | b6867ec2d7c882d2ac3a8b333955882107d43c9c (diff) | |
parent | 2d5653115320fcdf9cee15198a3290772485662c (diff) |
CWS-TOOLING: integrate CWS eraser01
-rw-r--r-- | cppcanvas/inc/cppcanvas/color.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cppcanvas/inc/cppcanvas/color.hxx b/cppcanvas/inc/cppcanvas/color.hxx index 7441f6f2937a..ad0430713ead 100644 --- a/cppcanvas/inc/cppcanvas/color.hxx +++ b/cppcanvas/inc/cppcanvas/color.hxx @@ -83,6 +83,16 @@ namespace cppcanvas return (nRed << 24U)|(nGreen << 16U)|(nBlue << 8U)|(nAlpha); } + inline sal_Int32 unMakeColor( sal_uInt8 nAlpha, sal_uInt8 nRed, sal_uInt8 nGreen, sal_uInt8 nBlue) + { + return (nAlpha << 24U)|(nRed << 16U)|(nGreen << 8U)|(nBlue); + } + + inline sal_Int32 makeColorARGB( sal_uInt8 nAlpha, sal_uInt8 nRed, sal_uInt8 nGreen, sal_uInt8 nBlue) + { + return (nAlpha << 24U)|(nRed << 16U)|(nGreen << 8U)|(nBlue); + } + } #endif /* _CPPCANVAS_COLOR_HXX */ |