Constructor JpegCompressor

Namespace
SoftZenPdf.Optimizer
Assembly
SoftZenPdf.Optimizer.dll

JpegCompressor(float)

Creates a JPEG compressor.

public JpegCompressor(float quality)

Parameters

quality float

From just above 0 (smallest files, visibly blocky) to 1 (best quality). 0.75 is a good general setting; around 0.5 still looks fine on screen for photographs.

Exceptions

ArgumentOutOfRangeException

quality is not greater than 0 and at most 1.