RotateFlipExtension

Class RotateFlipExtension

Namespace: Imagise.RotateFlip
Assembly: Imagise.RotateFlip.dll

Rotate flip extension class

public static class RotateFlipExtension

Inheritance

objectRotateFlipExtension

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Methods

Rotate(Image, float, bool, Color)

Rotate image around the center.

public static Image Rotate(this Image image, float angle, bool resizeProportionally, Color backgroundColor)

Parameters

image Image

angle float

The rotate angle in degrees. Positive values will rotate clockwise.

resizeProportionally bool

if set to true you will have your image size changed according to rotated rectangle (corner points) projections in other case that leaves dimensions untouched and only internal image contents are rotated.

backgroundColor Color

Color of the background.

Returns

Image

The image on rotate

Rotate(Image, float)

Rotates the specified angle.

public static Image Rotate(this Image image, float angle)

Parameters

image Image

The image.

angle float

The angle.

Returns

Image

The rotated images

RotateFlip(Image, RotateFlipType)

Rotates, flips, or rotates and flips the image.

public static Image RotateFlip(this Image image, RotateFlipType rotateFlipType)

Parameters

image Image

The image to rotate(flip)

rotateFlipType RotateFlipType

The rotate flip type.

Returns

Image