diff options
author | Thorsten Behrens <thb@openoffice.org> | 2006-06-30 10:05:21 +0000 |
---|---|---|
committer | Thorsten Behrens <thb@openoffice.org> | 2006-06-30 10:05:21 +0000 |
commit | 6928d01f7a4cff47b6c6b186885ac79a58e64ac6 (patch) | |
tree | ce21bc8872116bf43c87f614d6faafe6a810677d /basebmp/test/bmpdemo.cxx | |
parent | 83ba9ac7345480be18e2cd50fad8b880260b998c (diff) |
#i65904# Fixed ugly typos in clippedLine clipping; improved docs; added testcases for fixed bugs; corrected clip bounds for line and polyline rendering
Diffstat (limited to 'basebmp/test/bmpdemo.cxx')
-rw-r--r-- | basebmp/test/bmpdemo.cxx | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/basebmp/test/bmpdemo.cxx b/basebmp/test/bmpdemo.cxx index 1a0b3d4512c4..8f699dc05a18 100644 --- a/basebmp/test/bmpdemo.cxx +++ b/basebmp/test/bmpdemo.cxx @@ -4,9 +4,9 @@ * * $RCSfile: bmpdemo.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: thb $ $Date: 2006-06-28 16:50:19 $ + * last change: $Author: thb $ $Date: 2006-06-30 11:05:21 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -1078,14 +1078,23 @@ void TestWindow::Paint( const Rectangle& rRect ) { basegfx::B2ISize aTestSize(1000,1000); basebmp::BitmapDeviceSharedPtr pDevice( basebmp::createBitmapDevice( aTestSize, - true, + false, basebmp::Format::THIRTYTWO_BIT_TC_MASK )); { - const basegfx::B2IPoint aPt1(0,0); - const basegfx::B2IPoint aPt2(1,9); 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); pDevice->drawLine( aPt1, aPt2, aCol, basebmp::DrawMode_PAINT ); + + const basegfx::B2IPoint aPt3(0,1001); + pDevice->drawLine( aPt1, aPt3, aCol, basebmp::DrawMode_PAINT ); } { |