C# Class Accord.Imaging.Filters.BaseResizeFilter

Base class for image resizing filters.

The abstract class is the base class for all filters, which implement image rotation algorithms.

Inheritance: BaseTransformationFilter
Show file Open project: accord-net/framework

Protected Properties

Property Type Description
newHeight int
newWidth int

Protected Methods

Method Description
BaseResizeFilter ( int newWidth, int newHeight ) : System

Initializes a new instance of the BaseResizeFilter class.

CalculateNewImageSize ( UnmanagedImage sourceData ) : Size

Calculates new image size.

Method Details

BaseResizeFilter() protected method

Initializes a new instance of the BaseResizeFilter class.
protected BaseResizeFilter ( int newWidth, int newHeight ) : System
newWidth int Width of the new resized image.
newHeight int Height of the new resize image.
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

newHeight protected property

New image height.
protected int newHeight
return int

newWidth protected property

New image width.
protected int newWidth
return int