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

Utility methods for working with supported image formats.
Показать файл Открыть проект

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

Метод Описание
CreatePropertyItem ( ) : System.Drawing.Imaging.PropertyItem

Uses reflection to allow the creation of an instance of PropertyItem.

GetEncodingParameters ( int quality ) : System.Drawing.Imaging.EncoderParameters

Returns an instance of EncodingParameters for jpeg compression.

GetFormat ( Stream stream ) : ISupportedImageFormat

Gets the correct ISupportedImageFormat from the given stream.

HasAlpha ( Image image ) : bool

Returns a value indicating whether the given image has an alpha channel.

IsAnimated ( Image image ) : bool

Returns a value indicating whether the given image is animated.

IsIndexed ( Image image ) : bool

Returns a value indicating whether the given image is indexed.

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

CreatePropertyItem() публичный статический Метод

Uses reflection to allow the creation of an instance of PropertyItem.
public static CreatePropertyItem ( ) : System.Drawing.Imaging.PropertyItem
Результат System.Drawing.Imaging.PropertyItem

GetEncodingParameters() публичный статический Метод

Returns an instance of EncodingParameters for jpeg compression.
public static GetEncodingParameters ( int quality ) : System.Drawing.Imaging.EncoderParameters
quality int The quality to return the image at.
Результат System.Drawing.Imaging.EncoderParameters

GetFormat() публичный статический Метод

Gets the correct ISupportedImageFormat from the given stream.
public static GetFormat ( Stream stream ) : ISupportedImageFormat
stream Stream /// The to read from. ///
Результат ISupportedImageFormat

HasAlpha() публичный статический Метод

Returns a value indicating whether the given image has an alpha channel.
public static HasAlpha ( Image image ) : bool
image Image /// The to test. ///
Результат bool

IsAnimated() публичный статический Метод

Returns a value indicating whether the given image is animated.
public static IsAnimated ( Image image ) : bool
image Image /// The to test. ///
Результат bool

IsIndexed() публичный статический Метод

Returns a value indicating whether the given image is indexed.
public static IsIndexed ( Image image ) : bool
image Image /// The to test. ///
Результат bool