C# Class Accord.Imaging.Filters.RotateBilinear

Rotate image using bilinear interpolation.

The class implements image rotation filter using bilinear interpolation algorithm.

The filter accepts 8 bpp grayscale images and 24 bpp color images for processing.

Sample usage:

// create filter - rotate for 30 degrees keeping original image size RotateBilinear filter = new RotateBilinear( 30, true ); // apply the filter Bitmap newImage = filter.Apply( image );

Initial image:

Result image:

Inheritance: BaseRotateFilter
Afficher le fichier Open project: accord-net/framework Class Usage Examples

Méthodes publiques

Méthode Description
RotateBilinear ( double angle ) : System

Initializes a new instance of the RotateBilinear class.

This constructor sets BaseRotateFilter.KeepSize property to .

RotateBilinear ( double angle, bool keepSize ) : System

Initializes a new instance of the RotateBilinear class.

Méthodes protégées

Méthode Description
ProcessFilter ( UnmanagedImage sourceData, UnmanagedImage destinationData ) : void

Process the filter on the specified image.

Method Details

ProcessFilter() protected méthode

Process the filter on the specified image.
protected ProcessFilter ( UnmanagedImage sourceData, UnmanagedImage destinationData ) : void
sourceData UnmanagedImage Source image data.
destinationData UnmanagedImage Destination image data.
Résultat void

RotateBilinear() public méthode

Initializes a new instance of the RotateBilinear class.

This constructor sets BaseRotateFilter.KeepSize property to .

public RotateBilinear ( double angle ) : System
angle double Rotation angle.
Résultat System

RotateBilinear() public méthode

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