Skip to main content

Constructors

C#
1
2
3
public Image(Guid assetId, string caption = null, string language = null, string altText = null, ImageTransformations transformations = null) { }
C#
1
2
3
public Image(Guid assetId, string caption = null, string language = null, string altText = null, ImageTransformations transformations = null) { }

Properties

Examples

C#
1
2
3
4
5
// Get the field value as a Image instance Image bannerImage = movieEntry.Get<Image>("bannerImage"); // Get the field value as a dynamic (ExpandoObject) instance dynamic bannerImage = movieEntry.Get("bannerImage");
C#
1
2
3
4
5
// Create a new Image instance Image bannerImage = new Image("b54d1099-a9c5-4848-a16e-d24805fa0825", "Iron man main banner image", "Iron Man banner"); // Set the Image field value movieEntry.set("bannerImage", bannerImage);
C#
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Set the transformation properties, all of which are optional. 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 }; // Create a new Image instance Image bannerImage = new Image("b54d1099-a9c5-4848-a16e-d24805fa0825", "Iron man main banner image", "Iron Man banner", transformations); // Set the Image field value movieEntry.set("bannerImage", bannerImage);

Still need help?

New support request