PdfImage.RecompressWithJpeg Method (Int32)

Recompresses image data using JPEG baseline format and specified compression quality.

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

Syntax

C#
public void RecompressWithJpeg(
	int jpegQuality
)
VB
Public Sub RecompressWithJpeg ( 
	jpegQuality As Integer
)

Parameters

jpegQuality
Type: System.Int32
The JPEG quality.

Remarks

The JPEG quality value should be between 1 and 100 inclusive.

The quality value of 100 preserves most details but produces biggest output.

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

See Also