Scales the image.

Namespace: FirstFloor.Documents.Imaging
Assembly: FirstFloor.Documents (in FirstFloor.Documents.dll) Version: 2.5.0.0 (2.5.1.0)

Syntax

C#
public static BitmapSource ScaleImage(
	BitmapSource image,
	double scale,
	Size maxSize
)
Visual Basic
Public Shared Function ScaleImage ( _
	image As BitmapSource, _
	scale As Double, _
	maxSize As Size _
) As BitmapSource
Visual C++
public:
static BitmapSource^ ScaleImage(
	BitmapSource^ image, 
	double scale, 
	Size maxSize
)

Parameters

image
Type: System.Windows.Media.Imaging..::..BitmapSource
The image.
scale
Type: System..::..Double
The scale.
maxSize
Type: System.Windows..::..Size
Size of the max.

Return Value

The scaled image.

See Also