Image Scale Processor¶
The Scale processor lets you scale an image up or down with one simple line of code.
Example Usage¶
Xaml¶
<Image.Effects>
<auroraEffects:ImageProcessingEffect>
<auroraEffects:ImageProcessingEffect.ImageProcessingEffects>
<auroraImageProcessing:Scale ScaleAmount=".5" />
</auroraEffects:ImageProcessingEffect.ImageProcessingEffects>
</auroraEffects:ImageProcessingEffect>
</Image.Effects>
C#¶
_scale = new Aurora.ImageProcessing.Scale();
var imageProcessingEffect = new Aurora.Effects.ImageProcessingEffect();
imageProcessingEffect.ImageProcessingEffects.Add(
_scale
);
image.Effects.Add(imageProcessingEffect);