From 8c044545bbfd533f94743a7d6cb76da5844a9e3e Mon Sep 17 00:00:00 2001 From: Thorsten Behrens Date: Thu, 27 Jul 2006 10:35:32 +0000 Subject: #i65904# Dumped basegfx polygon raster converter in favor of a specialized solution; constructing all accessors with passed parameter now for the BitmapRenderer; significantly improved test coverage for polygon rasterizing --- basebmp/test/bmpdemo.cxx | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'basebmp/test/bmpdemo.cxx') diff --git a/basebmp/test/bmpdemo.cxx b/basebmp/test/bmpdemo.cxx index b8cb431a2321..7c472e0b972d 100644 --- a/basebmp/test/bmpdemo.cxx +++ b/basebmp/test/bmpdemo.cxx @@ -4,9 +4,9 @@ * * $RCSfile: bmpdemo.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: thb $ $Date: 2006-07-12 22:47:21 $ + * last change: $Author: thb $ $Date: 2006-07-27 11:35:32 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -1081,6 +1081,24 @@ void TestWindow::Paint( const Rectangle& rRect ) false, basebmp::Format::THIRTYTWO_BIT_TC_MASK )); + { + ::rtl::OUString aSvg; + basegfx::B2DPolyPolygon aPoly; + + basegfx::tools::importFromSvgD( aPoly, + ::rtl::OUString::createFromAscii( + "m0 0 h7 v7 h-7 z" ) ); + basegfx::tools::importFromSvgD( aPoly, + ::rtl::OUString::createFromAscii( + "m2 2 h3 v3 h-3 z" ) ); + + pDevice->fillPolyPolygon( + aPoly, + basebmp::Color(0xFFFFFFFF), + basebmp::DrawMode_PAINT ); + } + +#if 0 { basebmp::BitmapDeviceSharedPtr pMask( basebmp::createBitmapDevice( aTestSize, false, @@ -1114,11 +1132,9 @@ void TestWindow::Paint( const Rectangle& rRect ) { const basebmp::Color aCol(0xFFFFFFFF); -#if 0 basegfx::B2DPolygon aRect = basegfx::tools::createPolygonFromRect( basegfx::B2DRange( 0,0,1001,1001 )); pDevice->drawPolygon( aRect, aCol, basebmp::DrawMode_PAINT ); -#endif const basegfx::B2IPoint aPt1(0,0); const basegfx::B2IPoint aPt2(0,800); @@ -1127,6 +1143,7 @@ void TestWindow::Paint( const Rectangle& rRect ) const basegfx::B2IPoint aPt3(0,1001); pDevice->drawLine( aPt1, aPt3, aCol, basebmp::DrawMode_PAINT ); } +#endif { pDevice->clear(basebmp::Color(0)); -- cgit v1.2.3