CropExtension
Class CropExtension
Namespace: Imagise.Cropper
Assembly: Imagise.Cropper.dll
Cropper extension class
public static class CropExtension
Inheritance
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Methods
Crop(Image, int, int, int, int)
Crops the specified left shift.
public static Image Crop(this Image image, int leftShift, int rightShift, int topShift, int bottomShift)
Parameters
image
Image
The image.
leftShift
int
The left shift.
rightShift
int
The right shift.
topShift
int
The top shift.
bottomShift
int
The bottom shift.
Returns
Image
The image after crop
Crop(Image, Rectangle)
Crops the specified rectangle.
public static Image Crop(this Image image, Rectangle rectangle)
Parameters
image
Image
The image.
rectangle
Rectangle
The rectangle.
Returns
Image
The image after crop