[PATCH] fdo#46378: Prefer interpolation-based image rescaling in PDF export.

Gökçen Eraslan gokcen.eraslan at gmail.com
Fri May 25 07:05:57 PDT 2012


Change-Id: I9ead1221b4562dea0e1ef289944ac11ea850ed1a
---
 vcl/source/gdi/pdfwriter_impl2.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vcl/source/gdi/pdfwriter_impl2.cxx b/vcl/source/gdi/pdfwriter_impl2.cxx
index 4ba5e2c..b86e758 100644
--- a/vcl/source/gdi/pdfwriter_impl2.cxx
+++ b/vcl/source/gdi/pdfwriter_impl2.cxx
@@ -137,7 +137,7 @@ void PDFWriterImpl::implWriteBitmapEx( const Point& i_rPoint, const Size& i_rSiz
                     aNewBmpSize.Height() = FRound( fMaxPixelX / fBmpWH);
                 }
                 if( aNewBmpSize.Width() && aNewBmpSize.Height() )
-                    aBitmapEx.Scale( aNewBmpSize );
+                    aBitmapEx.Scale( aNewBmpSize, BMP_SCALE_INTERPOLATE );
                 else
                     aBitmapEx.SetEmpty();
             }
-- 
1.7.10.1


--------------060000000407020509000705--


More information about the LibreOffice mailing list