C# 클래스 HermaFx.Drawing.ImageFormatDetector

Helper class which provides logic to guess the image format of a given stream or byte buffer.
파일 보기 프로젝트 열기: evicertia/HermaFx

공개 메소드들

메소드 설명
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