C# Класс AForge.Imaging.Filters.RotateBicubic

Rotate image using bicubic interpolation.

The class implements image rotation filter using bicubic interpolation algorithm. It uses bicubic kernel W(x) as described on Wikipedia (coefficient a is set to -0.5).

Rotation is performed in counterclockwise direction.

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 RotateBicubic filter = new RotateBicubic( 30, true ); // apply the filter Bitmap newImage = filter.Apply( image );

Initial image:

Result image:

Наследование: BaseRotateFilter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
RotateBicubic ( double angle ) : System

Initializes a new instance of the RotateBicubic class.

This constructor sets BaseRotateFilter.KeepSize property to .

RotateBicubic ( double angle, bool keepSize ) : System

Initializes a new instance of the RotateBicubic class.

Защищенные методы

Метод Описание
ProcessFilter ( UnmanagedImage sourceData, UnmanagedImage destinationData ) : void

Process the filter on the specified image.

Описание методов

ProcessFilter() защищенный Метод

Process the filter on the specified image.
protected ProcessFilter ( UnmanagedImage sourceData, UnmanagedImage destinationData ) : void
sourceData UnmanagedImage Source image data.
destinationData UnmanagedImage Destination image data.
Результат void

RotateBicubic() публичный Метод

Initializes a new instance of the RotateBicubic class.

This constructor sets BaseRotateFilter.KeepSize property to .

public RotateBicubic ( double angle ) : System
angle double Rotation angle.
Результат System

RotateBicubic() публичный Метод

Initializes a new instance of the RotateBicubic class.
public RotateBicubic ( double angle, bool keepSize ) : System
angle double Rotation angle.
keepSize bool Keep image size or not.
Результат System