summaryrefslogtreecommitdiff
path: root/cppcanvas/inc
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2004-11-26 19:50:24 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2004-11-26 19:50:24 +0000
commit9d01f89982cd5e14c72bf6abd664b5a1fbd112ef (patch)
treecb9680ce3db33c21801cda9226a72c63952105ba /cppcanvas/inc
parent38bef3f2a761c1ec0663b9858b890c0927639c40 (diff)
INTEGRATION: CWS presentationengine01 (1.2.2); FILE MERGED
2004/10/12 14:14:21 thb 1.2.2.3: #i34997# Added support for FLOATTRANSPARENCY meta action 2004/07/20 19:08:41 thb 1.2.2.2: #110496# Unified include statements; removed external prefix from boost includes 2004/04/05 15:58:42 thb 1.2.2.1: Resync with canvas01 changes
Diffstat (limited to 'cppcanvas/inc')
-rw-r--r--cppcanvas/inc/cppcanvas/bitmap.hxx21
1 files changed, 18 insertions, 3 deletions
diff --git a/cppcanvas/inc/cppcanvas/bitmap.hxx b/cppcanvas/inc/cppcanvas/bitmap.hxx
index a4a94f5c2177..df60c8c8bc6b 100644
--- a/cppcanvas/inc/cppcanvas/bitmap.hxx
+++ b/cppcanvas/inc/cppcanvas/bitmap.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: bitmap.hxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: rt $ $Date: 2004-09-08 16:56:27 $
+ * last change: $Author: rt $ $Date: 2004-11-26 20:50:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -96,7 +96,22 @@ namespace cppcanvas
class Bitmap : public virtual CanvasGraphic
{
public:
- virtual BitmapCanvasSharedPtr getBitmapCanvas() const = 0;
+ /** Render to parent canvas, with global alpha.
+
+ This method renders the content to the parent canvas,
+ i.e. the canvas this object was constructed for.
+
+ @param nAlphaModulation
+ Global alpha value, with which each pixel alpha value gets
+ multiplied. For a normal, opaque bitmap, this will make
+ the bitmap appear transparent with the given alpha value
+ (value must be in the range [0,1]).
+
+ @return whether the rendering finished successfully.
+ */
+ virtual bool drawAlphaModulated( double nAlphaModulation ) const = 0;
+
+ virtual BitmapCanvasSharedPtr getBitmapCanvas() const = 0;
virtual ::com::sun::star::uno::Reference<
::drafts::com::sun::star::rendering::XBitmap > getUNOBitmap() const = 0;