PdfImage.ResizeTo Method (Int32, Int32, PdfImageCompression, Int32)

Docotic.Pdf Library Help > BitMiracle.Docotic.Pdf Namespace > PdfImage Class > PdfImage Methods > ResizeTo Method > ResizeTo Method (Int32, Int32, PdfImageCompression, Int32)
Docotic.Pdf documentation
Resizes image to specified width and height and compresses it using specified compression scheme.

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

Syntax

C#
public void ResizeTo(
	int width,
	int height,
	PdfImageCompression compression,
	int option
)
Visual Basic
Public Sub ResizeTo ( 
	width As Integer,
	height As Integer,
	compression As PdfImageCompression,
	option As Integer
)

Parameters

width
Type: System..::..Int32
The new width for the image.
height
Type: System..::..Int32
The new height for the image.
compression
Type: BitMiracle.Docotic.Pdf..::..PdfImageCompression
The compression scheme to use. Only Jpeg is supported now.
option
Type: System..::..Int32
The option for compression scheme.

Remarks

If compression is None then option parameter is ignored.

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

If compression is Group3Fax or Group4Fax then option parameter should specify a threshold level (value should be between 0 and 255 inclusive).

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

See Also