diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-08-10 15:38:31 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-08-10 15:51:12 +0200 |
commit | 651a252374d67716afedebb2a5eae76243da8e3b (patch) | |
tree | bedbfca4a7d403301f7b7c273a5c819621268ef5 /vcl | |
parent | d11285ac88e5d9eabe49b2beaf08d5c762b8ce1b (diff) |
Remove unused BitmapWriteAccess::FillPolygon
Change-Id: Iba583b4efab88620b54b02626bc9d9396219d0c8
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/bmpacc3.cxx | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/vcl/source/gdi/bmpacc3.cxx b/vcl/source/gdi/bmpacc3.cxx index 6523967d485f..06c9c09128f2 100644 --- a/vcl/source/gdi/bmpacc3.cxx +++ b/vcl/source/gdi/bmpacc3.cxx @@ -243,48 +243,6 @@ void BitmapWriteAccess::DrawRect( const Rectangle& rRect ) } } -// ------------------------------------------------------------------ - -void BitmapWriteAccess::FillPolygon( const Polygon& rPoly ) -{ - const sal_uInt16 nSize = rPoly.GetSize(); - - if( nSize && mpFillColor ) - { - const BitmapColor& rFillColor = *mpFillColor; - Region aRegion( rPoly ); -// Rectangle aRect; - - aRegion.Intersect( Rectangle( Point(), Size( Width(), Height() ) ) ); - - if( !aRegion.IsEmpty() ) - { - RectangleVector aRectangles; - aRegion.GetRegionRectangles(aRectangles); - - for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); ++aRectIter) - { - for(long nY = aRectIter->Top(), nEndY = aRectIter->Bottom(); nY <= nEndY; nY++) - { - for(long nX = aRectIter->Left(), nEndX = aRectIter->Right(); nX <= nEndX; nX++) - { - SetPixel(nY, nX, rFillColor); - } - } - } - - //RegionHandle aRegHandle( aRegion.BeginEnumRects() ); - // - //while( aRegion.GetEnumRects( aRegHandle, aRect ) ) - // for( long nY = aRect.Top(), nEndY = aRect.Bottom(); nY <= nEndY; nY++ ) - // for( long nX = aRect.Left(), nEndX = aRect.Right(); nX <= nEndX; nX++ ) - // SetPixel( nY, nX, rFillColor ); - // - //aRegion.EndEnumRects( aRegHandle ); - } - } -} - void BitmapWriteAccess::FillPolyPolygon( const PolyPolygon& rPolyPoly ) { const sal_uInt16 nCount = rPolyPoly.Count(); |