C# Class Accord.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: accord-net/framework

Protected Properties

Property Type Description
angle double
fillColor Color
keepSize bool

Protected 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.

CalculateNewImageSize ( UnmanagedImage sourceData ) : Size

Calculates new image size.

Method Details

BaseRotateFilter() protected method

Initializes a new instance of the BaseRotateFilter class.

This constructor sets KeepSize property to false.

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

BaseRotateFilter() protected method

Initializes a new instance of the BaseRotateFilter class.
protected 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