C# 클래스 NContrib.Drawing.ImageSizeHelper

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

공개 메소드들

메소드 설명
GetBmpImageSize ( Stream 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 ( Stream 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 ( Stream stream ) : 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

GetImageSize ( string imagePath ) : 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 ( Stream stream ) : Size

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

GetPngImageSize ( Stream 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 ( Stream stream ) : Size
stream Stream
리턴 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 ( Stream stream ) : Size
stream Stream
리턴 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 ( Stream stream ) : Size
stream Stream
리턴 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 ( string imagePath ) : Size
imagePath string
리턴 System.Drawing.Size

GetJpegImageSize() 공개 정적인 메소드

Reads a JPEG image's dimensions and returns a Size object. Much faster than using the built in System.Drawing.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 ( Stream stream ) : Size
stream Stream
리턴 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 ( Stream stream ) : Size
stream Stream
리턴 System.Drawing.Size