Merged PR 1505517: Fix the stretch mode in PointEnterEffects

The stretch modes of EffectSource and ImageSource are different, make some images get clipped.

Related work items: #16159813
This commit is contained in:
Minmin Gong 2018-03-02 01:02:44 +00:00
Родитель e5c108ebf7
Коммит 40a5569df5
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -153,6 +153,8 @@ namespace CompositionSampleGallery
// Set the effect surface as input
if (effectSurface != null)
{
// Set to UniformToFill to match the stretch mode of the original image
effectSurface.Brush.Stretch = CompositionStretch.UniformToFill;
brush.SetSourceParameter("EffectSource", effectSurface.Brush);
}
}