diff options
author | Thorsten Behrens <thb@openoffice.org> | 2006-07-27 10:35:32 +0000 |
---|---|---|
committer | Thorsten Behrens <thb@openoffice.org> | 2006-07-27 10:35:32 +0000 |
commit | 8c044545bbfd533f94743a7d6cb76da5844a9e3e (patch) | |
tree | a3df72dd0c7e673d673d017e0ec6268687b38a66 /basebmp/test/bmpdemo.cxx | |
parent | #i10000# ImplEnumMonitorProc: unreferenced formal parameter. (diff) | |
download | core-8c044545bbfd533f94743a7d6cb76da5844a9e3e.tar.gz core-8c044545bbfd533f94743a7d6cb76da5844a9e3e.zip |
#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
Diffstat (limited to 'basebmp/test/bmpdemo.cxx')
-rw-r--r-- | basebmp/test/bmpdemo.cxx | 25 |
1 files changed, 21 insertions, 4 deletions
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. @@ -1082,6 +1082,24 @@ void TestWindow::Paint( const Rectangle& rRect ) 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, basebmp::Format::ONE_BIT_MSB_GREY )); @@ -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)); |