C# Class PocketCampus.Main.PngWriter

WriteableBitmap Extensions for PNG Writing
Datei anzeigen Open project: accandme/pocketcampus

Public Methods

Method Description
PngWriter ( Stream stream, System.Windows.Media.Imaging.WriteableBitmap bitmap ) : System
Write ( ) : void

Write and PNG file out to a file stream. Currently compression is not supported.

Private Methods

Method Description
WriteChunk ( string type, byte data ) : void
WriteChunk ( string type, byte data, int offset, int length ) : void
WriteDataChunksUncompressed ( ) : void
WriteEndChunk ( ) : void
WriteGammaChunk ( ) : void
WriteHeaderChunk ( System.Windows.Media.Imaging.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

Method Details

PngWriter() public method

public PngWriter ( Stream stream, System.Windows.Media.Imaging.WriteableBitmap bitmap ) : System
stream Stream
bitmap System.Windows.Media.Imaging.WriteableBitmap
return System

Write() public method

Write and PNG file out to a file stream. Currently compression is not supported.
public Write ( ) : void
return void