Exemplo n.º 1
0
 /// <summary>
 /// Compress an image according to given indexed settings
 /// </summary>
 /// <param name="fileData">Byte data of the file to compress</param>
 /// <returns>Compressed PNGCompressor</returns>
 private Compressor.PNGCompressor compressIndexed(byte[] fileData)
 {
     Compressor.PNGQuant pngQuant = new Compressor.PNGQuant(fileData);
     pngQuant.CompressionSettings = this.CompressionSettings.Indexed;
     pngQuant.Start();
     return(pngQuant);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Compress an image according to given indexed settings
 /// </summary>
 /// <param name="fileData">Byte data of the file to compress</param>
 /// <returns>Compressed PNGCompressor</returns>
 private Compressor.PNGCompressor compressIndexed(byte[] fileData)
 {
     Compressor.PNGQuant pngQuant = new Compressor.PNGQuant(fileData);
     pngQuant.CompressionSettings = this.CompressionSettings.Indexed;
     pngQuant.Start();
     return pngQuant;
 }