PdfImage.RecompressWithFlate Method (Int32)

Recompresses image data using zlib/deflate compression method and specified compression quality.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public void RecompressWithFlate(
	int deflateQuality
)
VB
Public Sub RecompressWithFlate ( 
	deflateQuality As Integer
)

Parameters

deflateQuality
Type: System.Int32
The quality to use in Deflate encoder.

Remarks

The Deflate quality value should be between 0 and 9 inclusive.

The quality value of 9 gives best compression.

This method throws UnsupportedImageException when used on an inline image. You can check IsInline property before invoking this method.

See Also