Click or drag to resize

PdfToImageConverterPngCompressionLevel Property

The compression level of the PNG images, from 0 (no compression, the fastest) to 9 (the smallest files), or -1. The default value is -1: the PNG images are saved as the renderer writes them.

Namespace: ExpertPdf.Anywhere
Assembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntax
public int PngCompressionLevel { get; set; }

Property Value

Int32
Remarks
Used when the images are saved as PNG: when ImagesFormat is ImageFormat.Png and by ConvertPageToImageBytes() with ImageFormat.Png. The PNG compression is lossless: every level gives the same pixels, a higher level a smaller file in more time. With a level from 0 to 9 the converter writes the PNG file again at that level, with adaptive row filtering.
See Also