C# Class HermaFx.Drawing.ImageFormatDetector

Helper class which provides logic to guess the image format of a given stream or byte buffer.
显示文件 Open project: evicertia/HermaFx

Public Methods

Method Description
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.

Method Details

GetImageFormat() public static method

Gets the image format.
public static GetImageFormat ( Stream stream ) : ImageFormat
stream Stream The stream.
return ImageFormat

GetImageFormat() public static method

Gets the image format.
public static GetImageFormat ( byte buffer ) : ImageFormat
buffer byte The buffer.
return ImageFormat

GetMimeType() public static method

Gets the mime-type of the stream.
public static GetMimeType ( Stream stream ) : string
stream Stream The stream.
return string

GetMimeType() public static method

Gets the mime-type of the byte buffer.
public static GetMimeType ( byte buffer ) : string
buffer byte The buffer.
return string