C# 클래스 ImageTools.IO.Png.PngEncoder

Image encoder for writing image data to a stream in png format.
상속: IImageEncoder
파일 보기 프로젝트 열기: prepare/HTML-Renderer 1 사용 예제들

공개 메소드들

메소드 설명
Encode ( ExtendedImage image, Stream stream ) : void

Encodes the data of the specified image and writes the result to the specified stream.

IsSupportedFileExtension ( string extension ) : bool

Indicates if the image encoder supports the specified file extension.

PngEncoder ( ) : System

Initializes a new instance of the PngEncoder class.

비공개 메소드들

메소드 설명
WriteChunk ( string type, byte data ) : void
WriteChunk ( string type, byte data, int offset, int length ) : void
WriteDataChunks ( ) : void
WriteDataChunksFast ( ) : void
WriteEndChunk ( ) : void
WriteGammaChunk ( ) : void
WriteHeaderChunk ( PngHeader header ) : void
WriteInteger ( Stream stream, int value ) : void
WriteInteger ( Stream stream, uint value ) : void
WriteInteger ( byte data, int offset, int value ) : void
WritePhysicsChunk ( ) : void

메소드 상세

Encode() 공개 메소드

Encodes the data of the specified image and writes the result to the specified stream.
/// is null (Nothing in Visual Basic). /// - or - /// is null (Nothing in Visual Basic). ///
public Encode ( ExtendedImage image, Stream stream ) : void
image ExtendedImage The image, where the data should be get from. /// Cannot be null (Nothing in Visual Basic).
stream Stream The stream, where the image data should be written to. /// Cannot be null (Nothing in Visual Basic).
리턴 void

IsSupportedFileExtension() 공개 메소드

Indicates if the image encoder supports the specified file extension.
/// is null (Nothing in Visual Basic). is a string /// of length zero or contains only blanks.
public IsSupportedFileExtension ( string extension ) : bool
extension string The file extension.
리턴 bool

PngEncoder() 공개 메소드

Initializes a new instance of the PngEncoder class.
public PngEncoder ( ) : System
리턴 System