C# Класс ImageProcessor.Imaging.Formats.FormatBase

The supported format base. Implement this class when building a supported format.
Наследование: ISupportedImageFormat
Показать файл Открыть проект

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

Метод Описание
ApplyProcessor ( Image>.Func processor, ImageFactory factory ) : void

Applies the given processor the current image.

Equals ( object obj ) : bool

Determines whether the specified System.Object, is equal to this instance.

GetHashCode ( ) : int

Returns the hash code for this instance.

Load ( Stream stream ) : Image

Decodes the image to process.

Save ( Stream stream, Image image, long bitDepth ) : Image

Saves the current image to the specified output stream.

Save ( string path, Image image, long bitDepth ) : Image

Saves the current image to the specified file path.

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

Метод Описание
FormatBase ( ) : System

Initializes a new instance of the FormatBase class.

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

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

Applies the given processor the current image.
public ApplyProcessor ( Image>.Func processor, ImageFactory factory ) : void
processor Image>.Func The processor delegate.
factory ImageFactory The .
Результат void

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

Determines whether the specified System.Object, is equal to this instance.
public Equals ( object obj ) : bool
obj object The to compare with this instance.
Результат bool

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

Initializes a new instance of the FormatBase class.
protected FormatBase ( ) : System
Результат System

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

Returns the hash code for this instance.
public GetHashCode ( ) : int
Результат int

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

Decodes the image to process.
public Load ( Stream stream ) : Image
stream Stream /// The containing the image information. ///
Результат Image

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

Saves the current image to the specified output stream.
public Save ( Stream stream, Image image, long bitDepth ) : Image
stream Stream /// The to save the image information to. ///
image Image /// The to save. ///
bitDepth long /// The color depth in number of bits per pixel to save the image with. ///
Результат Image

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

Saves the current image to the specified file path.
public Save ( string path, Image image, long bitDepth ) : Image
path string The path to save the image to.
image Image /// The to save. ///
bitDepth long /// The color depth in number of bits per pixel to save the image with. ///
Результат Image