C# Класс HermaFx.Drawing.ImageFormatDetector

Helper class which provides logic to guess the image format of a given stream or byte buffer.
Показать файл Открыть проект

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

Метод Описание
GetImageFormat ( Stream stream ) : ImageFormat

Gets the image format.

GetImageFormat ( byte buffer ) : ImageFormat

Gets the image format.

GetMimeType ( Stream stream ) : string

Gets the mime-type of the stream.

GetMimeType ( byte buffer ) : string

Gets the mime-type of the byte buffer.

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

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

Gets the image format.
public static GetImageFormat ( Stream stream ) : ImageFormat
stream Stream The stream.
Результат ImageFormat

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

Gets the image format.
public static GetImageFormat ( byte buffer ) : ImageFormat
buffer byte The buffer.
Результат ImageFormat

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

Gets the mime-type of the stream.
public static GetMimeType ( Stream stream ) : string
stream Stream The stream.
Результат string

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

Gets the mime-type of the byte buffer.
public static GetMimeType ( byte buffer ) : string
buffer byte The buffer.
Результат string