Image transformations
Log in to add to favouritesThe ImageTransformations class represents transformations that will be applied to images in the Delivery API and within the Image Editor in the Contensis Entry UI.
All properties within the ImageTransformation type are optional.
Members
Name | Type | Description |
---|---|---|
Crop | ImageCrop |
The crop properties including Height, Width, X and Y. |
Quality | int? |
The image quality in percentage. |
Rotate | int? |
The image rotation in degrees. |
Size | ImageSize |
The image resize properties including Height and Width. |
Flip | string |
The image flip orientation. |
Setting the image transformations
ImageTransformations transformations = new ImageTransformations
{
Crop = new ImageCrop
{
Height = 1080,
Width = 1920,
X = 400,
Y = 900
},
Quality = 100,
Rotate = 90,
Size = new ImageSize
{
Height = 1080,
Width = 1920
},
Flip = ImageFlip.Vertical
};