RanorexRanorex Documentation
FilterScaled Method (input, filterKernel)
NamespacesRanorexImaging..::.ProcessingFilterScaled(Bitmap, array<Int32,2>[,](,)[,])
Creates a new grayscale image by applying the specified filter kernel on the input image. The grayscale values in the output image are scaled to avoid cropping, i.e. so that no output value is smaller than zero or greather than 255.
Declaration Syntax
C#Visual BasicVisual C++
public static Bitmap FilterScaled(
	Bitmap input,
	int[,] filterKernel
)
Public Shared Function FilterScaled ( _
	input As Bitmap, _
	filterKernel As Integer(,) _
) As Bitmap
public:
static Bitmap^ FilterScaled(
	Bitmap^ input, 
	array<int,2>^ filterKernel
)
Parameters
input (Bitmap)
An image.
filterKernel (array< Int32 ,2>[,](,)[,])
The filter kernel used to filter the input image.
Return Value
A grayscale image filtered by the specified filter kernel.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf input is null.
ArgumentExceptionIf the input image is not a grayscale image and cannot be converted to Format24bppRgb pixel format (i.e. if it is no color image in a 32 bit format).
ArgumentExceptionIf filterKernel is not a 3x3 or 5x5 filter kernel.

Assembly: Ranorex.Core (Module: Ranorex.Core) Version: 3.2.3.16825 (3.2.3.16825)