Url(Media)
Gets the url of the media item relative to the root of the host.
public static string Url(Media media)
- Returns:
- string
Parameters
media
Media
Url(Media, ImageProcessOptions)
Gets the url of the media item relative to the root of the host, including a query parameter to pass image processing options.
public static string Url(Media image, ImageProcessOptions imageOptions)
- Returns:
- string
Parameters
image
Media
The media item to get the url for. This must be a raster image type.
imageOptions
ImageProcessOptions
The image processing options
Url(Media, Nullable<UInt16>, Nullable<UInt16>, ResizeMode)
Gets the url of the media item relative to the root of the host, including a query parameter to pass image processing options.
public static string Url(Media image, Nullable<UInt16> width, Nullable<UInt16> height, ResizeMode mode)
- Returns:
- string
Parameters
image
Media
The media item to get the url for. This must be a raster image media type.
width
Nullable<UInt16>
The optional width of the served image.
height
Nullable<UInt16>
The optional height of the served image.
mode
ResizeMode
The resize mode of the served image. Defaults to {F:Redakt.Imaging.ResizeMode.Crop}.