Apache OpenOffice (AOO) Bugzilla – Issue 121859
GraphicProvider: scaling should allow to set the method to be used
Last modified: 2013-03-06 14:23:38 UTC
As reported in bug 121858 the GraphicProvider allows scaling images. Internally, it calls Bitmap::Scale without setting the flag that indicates the method used for scaling. This defaults to BMP_SCALE_FASTESTINTERPOLATE as defined in <vcl/bitmap.hxx> Bitmap::Scale() It should be possible to indicate in the FilterData the method for scaling the image.
Created attachment 80380 [details] Set of related patches The forth patch adds a new FilterData propery, named "Interpolation", that controls the method used in Bitmap::Scale. For this, a new constant group has been defined: css::graphic::Interpolation. I'm not so sure about the naming, so suggestions are welcome.