diff options
author | Jan Holesovsky <kendy@suse.cz> | 2012-06-04 14:47:18 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2012-06-05 11:28:07 +0200 |
commit | 9afb6e1e38c362a768e8e981f7b03cf8bcaf22cf (patch) | |
tree | 8e4cb5afec5a83589599f0e17b2b171b67f9770f /svx/source/gallery2 | |
parent | Lanczos resampling - mirror image on edges and fix image upscaling (diff) | |
download | core-9afb6e1e38c362a768e8e981f7b03cf8bcaf22cf.tar.gz core-9afb6e1e38c362a768e8e981f7b03cf8bcaf22cf.zip |
Use BMP_SCALE_LANCZOS instead of BMP_SCALE_INTERPOLATE.
Where we explicitly ask for better quality, use BMP_SCALE_LANCZOS, instead of
BMP_SCALE_INTERPOLATE.
Change-Id: I28ddf3290204532a8660e09ee9ab0949b6ce1c73
Diffstat (limited to 'svx/source/gallery2')
-rw-r--r-- | svx/source/gallery2/galobj.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/gallery2/galobj.cxx b/svx/source/gallery2/galobj.cxx index b2ca47641e6f..a05616f28fa2 100644 --- a/svx/source/gallery2/galobj.cxx +++ b/svx/source/gallery2/galobj.cxx @@ -111,7 +111,7 @@ sal_Bool SgaObject::CreateThumb( const Graphic& rGraphic ) Max( (long) (fFactor < 1. ? S_THUMB : S_THUMB / fFactor), 8L ) ); if( aThumbBmp.Scale( (double) aNewSize.Width() / aBmpSize.Width(), - (double) aNewSize.Height() / aBmpSize.Height(), BMP_SCALE_INTERPOLATE ) ) + (double) aNewSize.Height() / aBmpSize.Height(), BMP_SCALE_LANCZOS ) ) { aThumbBmp.Convert( BMP_CONVERSION_8BIT_COLORS ); bRet = sal_True; |