diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-04-18 09:01:43 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-04-18 09:01:43 +0000 |
commit | 3725df2b06fa03ff890b07611f765817519409ff (patch) | |
tree | fcb15a7ca9b9502fc7f5061a87910655c55e72b0 /cppcanvas/source/wrapper/implbitmap.cxx | |
parent | b6e7f1c224bc0552df22495a48eeac3e56e8a705 (diff) |
INTEGRATION: CWS presfixes03 (1.5.2); FILE MERGED
2005/04/01 16:09:46 thb 1.5.2.1: #i36190#, #i39245# Changed uno::Sequence::operator[] for nonconst sequences to use naked ptr; added support for true bezier polygons (and removed subdivision, where it was added because of that canvas deficiency); overhauled mtf renderer to provide faithful bounds also for subsetted meta files
Diffstat (limited to 'cppcanvas/source/wrapper/implbitmap.cxx')
-rw-r--r-- | cppcanvas/source/wrapper/implbitmap.cxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/cppcanvas/source/wrapper/implbitmap.cxx b/cppcanvas/source/wrapper/implbitmap.cxx index 59f598c7f06f..759401c75ebd 100644 --- a/cppcanvas/source/wrapper/implbitmap.cxx +++ b/cppcanvas/source/wrapper/implbitmap.cxx @@ -2,9 +2,9 @@ * * $RCSfile: implbitmap.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: rt $ $Date: 2005-03-30 08:33:06 $ + * last change: $Author: obo $ $Date: 2005-04-18 10:01:29 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -66,6 +66,8 @@ #include <basegfx/matrix/b2dhommatrix.hxx> #endif +#include <canvas/canvastools.hxx> + using namespace ::com::sun::star; @@ -132,11 +134,8 @@ namespace cppcanvas } rendering::RenderState aLocalState( maRenderState ); - aLocalState.DeviceColor.realloc( 4 ); - aLocalState.DeviceColor[0] = 1.0; - aLocalState.DeviceColor[1] = 1.0; - aLocalState.DeviceColor[2] = 1.0; - aLocalState.DeviceColor[3] = nAlphaModulation; + ::canvas::tools::setDeviceColor( aLocalState, + 1.0, 1.0, 1.0, nAlphaModulation ); // TODO(P1): implement caching pCanvas->getUNOCanvas()->drawBitmapModulated( mxBitmap, |