C# Class HermaFx.Drawing.ImageFormatDetector

Helper class which provides logic to guess the image format of a given stream or byte buffer.
Afficher le fichier Open project: evicertia/HermaFx

Méthodes publiques

Méthode 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 méthode

Gets the image format.
public static GetImageFormat ( Stream stream ) : ImageFormat
stream Stream The stream.
Résultat ImageFormat

GetImageFormat() public static méthode

Gets the image format.
public static GetImageFormat ( byte buffer ) : ImageFormat
buffer byte The buffer.
Résultat ImageFormat

GetMimeType() public static méthode

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

GetMimeType() public static méthode

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