Docotic.Pdf Library Help > BitMiracle.Docotic.Pdf > PdfImage Class > PdfImage Methods > Scale Method > Scale Method (Double, PdfImageCompression, Int32)
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,
	int option
)
VB
Public Sub Scale ( 
	factor As Double,
	compression As PdfImageCompression,
	option As Integer
)

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.
option
Type: System.Int32
The option for compression scheme.

Remarks

If compression is Flate then option parameter should specify compression quality (value should be between 0 and 9 inclusive).

If compression is Jpeg then option parameter should specify a JPEG quality (value should be between 1 and 100 inclusive).

See Also