Fits size of passed image to passed area and returns fitted rectangle.

Namespace:  Greatis.PrintSuite
Assembly:  Greatis.PrintSuite (in Greatis.PrintSuite.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function FitRect ( _
	args As PrintContentEventArgs, _
	image As Image, _
	area As Rectangle, _
	scale As Integer _
) As Rectangle
C#
public static Rectangle FitRect(
	PrintContentEventArgs args,
	Image image,
	Rectangle area,
	int scale
)
Visual C++
public:
static Rectangle FitRect(
	PrintContentEventArgs^ args, 
	Image^ image, 
	Rectangle area, 
	int scale
)
JavaScript
Greatis.PrintSuite.Service.fitRect = function(args, image, area, scale);

Parameters

args
Type: Greatis.PrintSuite..::.PrintContentEventArgs
Arguments from print event.
image
Type: System.Drawing..::.Image
Image to be fit.
area
Type: System.Drawing..::.Rectangle
Target area rectangle.
scale
Type: System..::.Int32
Scale in percents.

Return Value

Rectangle contained passed image inside passwed area with the passed scale.

See Also