Scales the image so that it fits a certain width and height.

Namespace: iTextSharp.text
Assembly: ITextSharp (in ITextSharp.dll) Version: 4.1.6.0

Syntax

C#
public void ScaleToFit(
	float fitWidth,
	float fitHeight
)
Visual Basic
Public Sub ScaleToFit ( _
	fitWidth As Single, _
	fitHeight As Single _
)
Visual C++
public:
void ScaleToFit(
	float fitWidth, 
	float fitHeight
)

Parameters

fitWidth
Type: System..::..Single
the width to fit
fitHeight
Type: System..::..Single
the height to fit

See Also