CogImage16Range ScaleImage Method Cognex VisionPro
Creates a scaled version of this image. The dimensions of the returned image (in pixels) are specified by the DesiredWidth and DesiredHeight arguments. The scaling is performed using bilinear interpolation.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.CorePlus (in Cognex.VisionPro.CorePlus.dll) Version: 65.1.0.0
Syntax

public virtual ICogImage ScaleImage(
	int DesiredWidth,
	int DesiredHeight
)

Parameters

DesiredWidth
Type: System Int32
The width in pixels of the desired output image.
DesiredHeight
Type: System Int32
The height in pixels of the desired output image.

Return Value

Type: ICogImage

Implements

ICogImage ScaleImage(Int32, Int32)
Exceptions

ExceptionCondition
CogImageNoPixelsException If Allocated is false.
See Also