From 0177db3f91a28995ca151b63d054cd539cd27212 Mon Sep 17 00:00:00 2001 From: Thorsten Behrens Date: Thu, 13 Jul 2006 11:03:26 +0000 Subject: #i65904# Swapped mask polarity - now, a zero in the mask denotes opacity; minor code tidying; made drawMaskedBitmap() handle a few more generic cases; switched 24bpp to BGR; adapted tests to modified mask polarity --- basebmp/test/bmpmasktest.cxx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'basebmp/test/bmpmasktest.cxx') diff --git a/basebmp/test/bmpmasktest.cxx b/basebmp/test/bmpmasktest.cxx index a42bb4f82d8e..3b9575979510 100644 --- a/basebmp/test/bmpmasktest.cxx +++ b/basebmp/test/bmpmasktest.cxx @@ -4,9 +4,9 @@ * * $RCSfile: bmpmasktest.cxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: thb $ $Date: 2006-07-12 15:09:45 $ + * last change: $Author: thb $ $Date: 2006-07-13 12:03:26 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -139,14 +139,15 @@ public: basegfx::B2DPolyPolygon aPoly; basegfx::tools::importFromSvgD( aPoly, aSvg ); - const Color aCol(0xFFFFFFFF); + const Color aColWhite(0xFFFFFFFF); + const Color aColBlack(0); mpBmp1bpp->fillPolyPolygon( aPoly, - aCol, + aColWhite, DrawMode_PAINT ); mpBmp32bpp->fillPolyPolygon( aPoly, - aCol, + aColWhite, DrawMode_PAINT ); aSvg = ::rtl::OUString::createFromAscii( @@ -154,9 +155,10 @@ public: aPoly.clear(); basegfx::tools::importFromSvgD( aPoly, aSvg ); + mpMaskBmp1bpp->clear(aColWhite); mpMaskBmp1bpp->fillPolyPolygon( aPoly, - aCol, + aColBlack, DrawMode_PAINT ); } -- cgit