Issue 121859 - GraphicProvider: scaling should allow to set the method to be used
Summary: GraphicProvider: scaling should allow to set the method to be used
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.4.1
Hardware: All All
: P3 Normal
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2013-03-06 14:12 UTC by Ariel Constenla-Haile
Modified: 2013-03-06 14:23 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

Set of related patches (9.74 KB, multipart/x-zip)
2013-03-06 14:23 UTC, Ariel Constenla-Haile
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Ariel Constenla-Haile 2013-03-06 14:12:21 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.
Comment 1 Ariel Constenla-Haile 2013-03-06 14:23:38 UTC
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.