View Source
Class ImageUrlGenerationOptions
These are options that are passed to the IImageUrlGenerator implementation to determine the URL that is generated.
Assembly: Umbraco.Core.dll
Syntax
public class ImageUrlGenerationOptions
Constructors
View Source
ImageUrlGenerationOptions(string?)
Declaration
public ImageUrlGenerationOptions(string? imageUrl)
Parameters
| Type |
Name |
Description |
| string |
imageUrl |
The base image URL.
|
Properties
View Source
CacheBusterValue
Gets or sets a cache buster value to append to the URL.
Declaration
public string? CacheBusterValue { get; set; }
Property Value
View Source
Crop
Gets or sets the crop coordinates.
Declaration
public ImageUrlGenerationOptions.CropCoordinates? Crop { get; set; }
Property Value
View Source
FocalPoint
Gets or sets the focal point position for cropping.
Declaration
public ImageUrlGenerationOptions.FocalPointPosition? FocalPoint { get; set; }
Property Value
View Source
Gets or sets the image format to use (for example "webp").
Declaration
public string? Format { get; set; }
Property Value
View Source
FurtherOptions
Gets or sets additional options to append to the generated URL.
Declaration
public string? FurtherOptions { get; set; }
Property Value
View Source
Height
Gets or sets the desired output height in pixels.
Declaration
public int? Height { get; set; }
Property Value
View Source
ImageCropAnchor
Gets or sets the image crop anchor position.
Declaration
public ImageCropAnchor? ImageCropAnchor { get; set; }
Property Value
View Source
ImageCropMode
Gets or sets the image crop mode to use.
Declaration
public ImageCropMode? ImageCropMode { get; set; }
Property Value
View Source
ImageUrl
Declaration
public string? ImageUrl { get; }
Property Value
View Source
Quality
Gets or sets the image quality (typically 0-100).
Declaration
public int? Quality { get; set; }
Property Value
View Source
SourceHeight
Gets or sets the source height of the original image in pixels.
Declaration
public int? SourceHeight { get; set; }
Property Value
View Source
SourceWidth
Gets or sets the source width of the original image in pixels.
Declaration
public int? SourceWidth { get; set; }
Property Value
View Source
Width
Gets or sets the desired output width in pixels.
Declaration
public int? Width { get; set; }
Property Value
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
View Source
Equals(ImageUrlGenerationOptions?)
Declaration
public bool Equals(ImageUrlGenerationOptions? other)
Parameters
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns