diff options
Diffstat (limited to 'vcl/source/gdi/bmpacc3.cxx')
-rw-r--r-- | vcl/source/gdi/bmpacc3.cxx | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/vcl/source/gdi/bmpacc3.cxx b/vcl/source/gdi/bmpacc3.cxx index 17b8db33c085..483e3b596a02 100644 --- a/vcl/source/gdi/bmpacc3.cxx +++ b/vcl/source/gdi/bmpacc3.cxx @@ -266,32 +266,4 @@ 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() ) - { - RegionHandle aRegHandle( aRegion.BeginEnumRects() ); - - while( aRegion.GetNextEnumRect( 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 ); - } - } -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |