Devesprit.ImageProcessor & Devesprit.ImageServer
RotateBounded

Description:

Rotates the current image by the given angle without expanding the canvas.

Method Declaration
Copy Code
public ImageFactory RotateBounded(float degrees, bool keepSize = false)

Parameters:

degrees The angle at which to rotate the image in degrees.
keepSize Whether to keep the original image dimensions. If set to true, the image is zoomed to fit the bounding area. If set to false, the area is cropped to fit the rotated image.

Assembly:

Devesprit.ImageProcessor

Example
Copy Code
new ImageFactory().Load(@"My-Image-Path").RotateBounded(45, true);

Original

 

Result