Commit 29968cfd authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

gdiplus: Support GdipSetInterpolationMode in metafiles.

parent f2483748
......@@ -5872,6 +5872,19 @@ GpStatus WINGDIPAPI GdipSetInterpolationMode(GpGraphics *graphics,
if (mode == InterpolationModeHighQuality)
mode = InterpolationModeHighQualityBicubic;
if (mode == graphics->interpolation)
return Ok;
if (graphics->image && graphics->image->type == ImageTypeMetafile)
{
GpStatus stat;
stat = METAFILE_AddSimpleProperty((GpMetafile*)graphics->image,
EmfPlusRecordTypeSetInterpolationMode, mode);
if (stat != Ok)
return stat;
}
graphics->interpolation = mode;
return Ok;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment