示例#1
0
 /// <summary> Called automatically before writing the first row </summary>
 void Initialize()
 {
     datStream         = new PngIDatChunkOutputStream(this.outputStream, this.IdatMaxSize);
     datStreamDeflated = ZlibStreamFactory.createZlibOutputStream(datStream, this.CompressionLevel, this.CompressionStrategy, true);
     WriteSignatureAndIHDR();
     WriteFirstChunks();
 }
示例#2
0
 /// <summary>
 /// init: is called automatically before writing the first row
 /// </summary>
 private void Init()
 {
     datStream         = new PngIDatChunkOutputStream(outputStream, IdatMaxSize);
     datStreamDeflated = ZlibStreamFactory.CreateZlibOutputStream(datStream, CompLevel, CompressionStrategy, true);
     WriteSignatureAndIHDR();
     WriteFirstChunks();
 }