Method | Description | |
---|---|---|
GetImageEncoderFromMimeType ( string mimeType ) : System.Drawing.Imaging.ImageCodecInfo |
Gets the appropriate ImageCodecInfo based on a mime type
|
|
GetImageFormatFromMimeType ( string mimeType ) : |
Get the appropriate ImageFormat for the specified mimeType using GetImageEncoderFromMimeType as a helper.
|
|
IsBmp ( Stream stream ) : bool |
Looks for the BMP 2-byte leading signature at the current position in the stream. Rewinds the stream to its original position when finished.
|
|
IsGif ( Stream stream ) : bool |
Looks for the GIF 6-byte leading signature and version the current position in the stream. Rewinds the stream to its original position when finished.
|
|
IsImageType ( Stream stream, |
Detects if the image in the given stream is
|
|
IsJpeg ( Stream stream ) : bool |
Looks for the JPEG 2-bytes leading signature at the current position in the stream Rewinds the stream to its original position when finished.
|
|
IsPng ( Stream stream ) : bool |
Looks for the PNG 8-byte leading signature at the current position in the stream. Rewinds the stream to its original position when finished.
|
public static GetImageEncoderFromMimeType ( string mimeType ) : System.Drawing.Imaging.ImageCodecInfo | ||
mimeType | string | |
return | System.Drawing.Imaging.ImageCodecInfo |
public static GetImageFormatFromMimeType ( string mimeType ) : |
||
mimeType | string | |
return |
public static IsImageType ( Stream stream, |
||
stream | Stream | |
type | ||
return | bool |
public static IsJpeg ( Stream stream ) : bool | ||
stream | Stream | |
return | bool |