Image Api

Base Image

The basic image is called direct from the api if required:

https://app-hes-evnts-prod-neu-01.azurewebsites.net/api/image/75cb7f4c-7dc3-4a74-840d-aebd00a7d699

Resize and Pad

The image can be resized, but keep the original aspect. The image borders will be padded

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizePad(width: 300, height: 300)

The background colour can be specified, as well as the anchor point for the crop

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizePad(width: 300, height: 300, anchor: AnchorMode.Bottom, bgcolor: "555")

Resize and Cropped

The image can be resized, but cropped so that there are no borders as with the pad version.

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(width: 300, height: 300)

The position of the crop anchor can also be specified

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(width: 300, height: 300, anchor: AnchorMode.Left)

Resize and Max

The largest image that will fit the aspect ratio

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeMax(width: 300, height: 300)

Resize and Stretch

The image stretched to fit

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeStretch(width: 300, height: 300)

Alpha

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).Alpha(alpha: 25)

Brightness

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).Brightness(value: 25)

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).Brightness(value: -25)

Contrast

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).Contrast(value: 25)

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).Contrast(value: -25)

Detect Edges

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).DetectEdges(filter: DetectEdgesFilter.Kayyali)

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).DetectEdges(greyscale: true, filter: DetectEdgesFilter.Prewitt)

Filter

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).Filter(filter: ImageFilter.Greyscale)

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).Filter(filter: ImageFilter.Comic)

Flip

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).Flip(direction: Flip.Horizontal)

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).Flip(direction: Flip.Vertical)

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).Flip(direction: Flip.Both)

Hue

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).Hue(hue: 180)

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).Hue(hue: 180, rotate: true)

Pixelate

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).Pixelate(size: 8)

Quality

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).Quality(value: 25)

Rotate

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).Rotate(angle: 35)

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).Rotate(angle: 35, bgcolor: "FFF")

Rounded Corners

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).RoundedCorners(value: 20)

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).Rotate(angle: 35, bgcolor: "FFF")

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).Rotate(angle: 35, bgcolor: "FFF", tl: false, br: false)

Saturation

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).Saturation(value: 25)

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).Saturation(value: -25)

Tint

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).Tint(color: "purple")

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).Tint(color: "C16")

Vignette

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).Vignette()

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).Vignette(color: "purple")

EventImage.From("75cb7f4c-7dc3-4a74-840d-aebd00a7d699").ResizeCrop(300, 300).Vignette(color: "C16")