/// <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(); }
/// <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(); }