CogMisc ScaleImage Method Cognex VisionPro 9.22
Returns a scaled version of the inputImage. The dimensions of the returned image (in pixels) are specified by outputImageWidth and outputImageHeight. The scaling is performed using bilinear interpolation.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 87.0.0.0
Syntax

public static ICogImage ScaleImage(
	ICogImage inputImage,
	int outputImageWidth,
	int outputImageHeight
)

Parameters

inputImage
Type: Cognex.VisionPro ICogImage
The source image to be scaled.
outputImageWidth
Type: System Int32
Width in pixels of the desired output image.
outputImageHeight
Type: System Int32
Height in pixels of the desired output image.

Return Value

Type: ICogImage
The scaled image.
Remarks

Returns a scaled version of the inputImage. Scaling is performed using bilinear interpolation.

See Also