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

Resize image using bilinear interpolation algorithm.

The class implements image resizing filter using bilinear interpolation algorithm.

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

Sample usage:

// create filter ResizeBilinear filter = new ResizeBilinear( 400, 300 ); // apply the filter Bitmap newImage = filter.Apply( image );

Initial image:

Result image:

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

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

Метод Описание
ResizeBilinear ( int newWidth, int newHeight ) : System

Initializes a new instance of the ResizeBilinear 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

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

Initializes a new instance of the ResizeBilinear class.
public ResizeBilinear ( int newWidth, int newHeight ) : System
newWidth int Width of the new image.
newHeight int Height of the new image.
Результат System