C# 클래스 NContrib.Drawing.Extensions.StreamExtensions

파일 보기 프로젝트 열기: veracross/ncontrib

공개 메소드들

메소드 설명
GetBmpImageSize ( this stream ) : Size

Reads the size of a BMP image from this stream at the current offset Rewinds the stream to where it started when finished

GetGifImageSize ( this stream ) : Size

Reads the size of a GIF image from this stream at the current offset Rewinds the stream to where it started when finished

GetImageSize ( this s ) : Size

Tries to use the GNV fast image size checkers for JPEG, GIF, PNG, and BMP Uses .NET newing-up an Image object as a fallback

GetJpegImageSize ( this stream ) : Size

Reads a JPEG image's dimensions and returns a Size object. Much faster than using the built in Image class which loads the entire image into memory Rewinds the stream after reading.

GetPngImageSize ( this stream ) : Size

Reads the size of a PNG image from this stream at the current offset Rewinds the stream to where it started when finished

메소드 상세

GetBmpImageSize() 공개 정적인 메소드

Reads the size of a BMP image from this stream at the current offset Rewinds the stream to where it started when finished
public static GetBmpImageSize ( this stream ) : Size
stream this
리턴 System.Drawing.Size

GetGifImageSize() 공개 정적인 메소드

Reads the size of a GIF image from this stream at the current offset Rewinds the stream to where it started when finished
public static GetGifImageSize ( this stream ) : Size
stream this
리턴 System.Drawing.Size

GetImageSize() 공개 정적인 메소드

Tries to use the GNV fast image size checkers for JPEG, GIF, PNG, and BMP Uses .NET newing-up an Image object as a fallback
public static GetImageSize ( this s ) : Size
s this
리턴 System.Drawing.Size

GetJpegImageSize() 공개 정적인 메소드

Reads a JPEG image's dimensions and returns a Size object. Much faster than using the built in Image class which loads the entire image into memory Rewinds the stream after reading.
Thrown when the Stream is not a JPEG image
public static GetJpegImageSize ( this stream ) : Size
stream this
리턴 System.Drawing.Size

GetPngImageSize() 공개 정적인 메소드

Reads the size of a PNG image from this stream at the current offset Rewinds the stream to where it started when finished
public static GetPngImageSize ( this stream ) : Size
stream this
리턴 System.Drawing.Size