C# Class AForge.Imaging.Filters.BaseRotateFilter

Base class for image rotation filters.
The abstract class is the base class for all filters, which implement rotating algorithms.
Inheritance: BaseTransformationFilter
显示文件 Open project: holisticware-admin/MonoVersal.AForgeNET Class Usage Examples

Protected Properties

Property Type Description
angle double
fillColor Color
keepSize bool

Public Methods

Method Description
BaseRotateFilter ( double angle ) : System

Initializes a new instance of the BaseRotateFilter class.

This constructor sets KeepSize property to false.

BaseRotateFilter ( double angle, bool keepSize ) : System

Initializes a new instance of the BaseRotateFilter class.

Protected Methods

Method Description
CalculateNewImageSize ( UnmanagedImage sourceData ) : Size

Calculates new image size.

Method Details

BaseRotateFilter() public method

Initializes a new instance of the BaseRotateFilter class.

This constructor sets KeepSize property to false.

public BaseRotateFilter ( double angle ) : System
angle double Rotation angle.
return System

BaseRotateFilter() public method

Initializes a new instance of the BaseRotateFilter class.
public BaseRotateFilter ( double angle, bool keepSize ) : System
angle double Rotation angle.
keepSize bool Keep image size or not.
return System

CalculateNewImageSize() protected method

Calculates new image size.
protected CalculateNewImageSize ( UnmanagedImage sourceData ) : Size
sourceData UnmanagedImage Source image data.
return System.Drawing.Size

Property Details

angle protected_oe property

Rotation angle.
protected double angle
return double

fillColor protected_oe property

Fill color.
protected Color fillColor
return Color

keepSize protected_oe property

Keep image size or not.
protected bool keepSize
return bool