C# Class ImageProcessor.Processors.RoundedCorners

Encapsulates methods to add rounded corners to an image.
Inheritance: IGraphicsProcessor
Mostra file Open project: JimBobSquarePants/ImageProcessor Class Usage Examples

Public Methods

Method Description
ProcessImage ( ImageFactory factory ) : Image

Processes the image.

RoundedCorners ( ) : System

Initializes a new instance of the RoundedCorners class.

Private Methods

Method Description
RoundCornerImage ( Image image, int cornerRadius, bool topLeft = false, bool topRight = false, bool bottomLeft = false, bool bottomRight = false ) : Bitmap

Adds rounded corners to the image

Method Details

ProcessImage() public method

Processes the image.
public ProcessImage ( ImageFactory factory ) : Image
factory ImageFactory /// The current instance of the class containing /// the image to process. ///
return Image

RoundedCorners() public method

Initializes a new instance of the RoundedCorners class.
public RoundedCorners ( ) : System
return System