C# 클래스 ImageProcessor.Imaging.Formats.FormatUtilities

Utility methods for working with supported image formats.
파일 보기 프로젝트 열기: JimBobSquarePants/ImageProcessor

공개 메소드들

메소드 설명
CreatePropertyItem ( ) : System.Drawing.Imaging.PropertyItem

Uses reflection to allow the creation of an instance of PropertyItem.

GetEncodingParameters ( int quality ) : System.Drawing.Imaging.EncoderParameters

Returns an instance of EncodingParameters for jpeg compression.

GetFormat ( Stream stream ) : ISupportedImageFormat

Gets the correct ISupportedImageFormat from the given stream.

HasAlpha ( Image image ) : bool

Returns a value indicating whether the given image has an alpha channel.

IsAnimated ( Image image ) : bool

Returns a value indicating whether the given image is animated.

IsIndexed ( Image image ) : bool

Returns a value indicating whether the given image is indexed.

메소드 상세

CreatePropertyItem() 공개 정적인 메소드

Uses reflection to allow the creation of an instance of PropertyItem.
public static CreatePropertyItem ( ) : System.Drawing.Imaging.PropertyItem
리턴 System.Drawing.Imaging.PropertyItem

GetEncodingParameters() 공개 정적인 메소드

Returns an instance of EncodingParameters for jpeg compression.
public static GetEncodingParameters ( int quality ) : System.Drawing.Imaging.EncoderParameters
quality int The quality to return the image at.
리턴 System.Drawing.Imaging.EncoderParameters

GetFormat() 공개 정적인 메소드

Gets the correct ISupportedImageFormat from the given stream.
public static GetFormat ( Stream stream ) : ISupportedImageFormat
stream Stream /// The to read from. ///
리턴 ISupportedImageFormat

HasAlpha() 공개 정적인 메소드

Returns a value indicating whether the given image has an alpha channel.
public static HasAlpha ( Image image ) : bool
image Image /// The to test. ///
리턴 bool

IsAnimated() 공개 정적인 메소드

Returns a value indicating whether the given image is animated.
public static IsAnimated ( Image image ) : bool
image Image /// The to test. ///
리턴 bool

IsIndexed() 공개 정적인 메소드

Returns a value indicating whether the given image is indexed.
public static IsIndexed ( Image image ) : bool
image Image /// The to test. ///
리턴 bool