Devesprit.ImageProcessor & Devesprit.ImageServer
RoundedCorners

Description:

Adds rounded corners to the current image.

Method Declaration
Copy Code
public ImageFactory RoundedCorners(int radius)

Parameters:

radius The radius at which the corner will be rounded.



Method Declaration
Copy Code
public ImageFactory RoundedCorners(RoundedCornerLayer roundedCornerLayer)

RoundedCornerLayer:

Radius The radius at which the corner will be rounded.
TopLeft A value indicating whether top left corners are to be added.
TopRight A value indicating whether top right corners are to be added.
BottomLeft A value indicating whether bottom left corners are to be added.
BottomRight A value indicating whether bottom right corners are to be added.

Assembly:

Devesprit.ImageProcessor

Example
Copy Code
new ImageFactory().Load(@"My-Image-Path").RoundedCorners(150).BackgroundColor(Color.White);

Original

 

Result