Image.

Resize(Nullable<int>, Nullable<int>, AnchorPositionMode, ResizeMode) Method

Summary

Resizes the image to a certain width and height. No resizing will be performed if both width and height are set to null.
Assembly
Wyam.Images.dll
Namespace
Wyam.Images
Containing Type
Image

Syntax

public Image Resize(Nullable<int> width, Nullable<int> height, AnchorPositionMode anchor = 0, ResizeMode mode = 2)

Parameters

Name Type Description
width Nullable<int> The desired width. If set to null or 0, the image will maintain it's original aspect ratio.
height Nullable<int> The desired height. If set to null or 0, the image will maintain it's original aspect ratio.
anchor AnchorPositionMode The anchor position to use (if necessary).
mode ResizeMode The resize mode to use.

Return Value

Type Description
Image The current module instance.
GitHub