Scales image using specified scale factor and compresses it using specified compression scheme.

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

Syntax

C#
public void Scale(
	double factor,
	PdfImageCompression compression
)
VB
Public Sub Scale ( 
	factor As Double,
	compression As PdfImageCompression
)

Parameters

factor
Type: System.Double
The scale factor.
compression
Type: BitMiracle.Docotic.Pdf.PdfImageCompression
The compression scheme to use. Only Jpeg and Flate schemes are supported now.

Remarks

The aspect ratio of the image is preserved by this method.

This method uses default options for specified compression scheme.

Please use Scale(Double, PdfImageCompression, Int32) overload if you want to tune up compression scheme.

See Also