Image Resize Processor¶
The Image Resize processor lets you change the height and width of an image to make suitable for exporting elsewhere.
Properties¶
MaxHeight - int¶
Gets or sets the height of the max.
MaxWidth - int¶
Gets or sets the width of the max.
Example Usage¶
Xaml¶
<Image.Effects>
<auroraEffects:ImageProcessingEffect>
<auroraEffects:ImageProcessingEffect.ImageProcessingEffects>
<auroraImageProcessing:ResizeImage MaxWidth="120" MaxHeight="100" />
</auroraEffects:ImageProcessingEffect.ImageProcessingEffects>
</auroraEffects:ImageProcessingEffect>
</Image.Effects>
C#¶
var imageProcessingEffect = new Aurora.Effects.ImageProcessingEffect();
imageProcessingEffect.ImageProcessingEffects.Add(
new Aurora.ImageProcessing.ResizeImage { MaxWidth = 100, MaxHeight = 200 }
);
image.Effects.Add(imageProcessingEffect);