Creates a scaled version of this image. The dimensions of the returned image (in pixels) are specified by the width and height arguments. The scaling is performed using bilinear interpolation.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 80.0.0.0
public override ICogImage ScaleImage(
int width,
int height
)
public override ICogImage ScaleImage(
int width,
int height
)
Public Overrides Function ScaleImage (
width As Integer,
height As Integer
) As ICogImage
Public Overrides Function ScaleImage (
width As Integer,
height As Integer
) As ICogImage
public:
virtual ICogImage^ ScaleImage(
int width,
int height
) override
public:
virtual ICogImage^ ScaleImage(
int width,
int height
) override
Parameters
- width
- Type: System Int32
Width in pixels of the desired output image.
- height
- Type: System Int32
Height in pixels of the desired output image.
Return Value
Type:
ICogImageThe scaled image.
Implements
ICogImage ScaleImage(Int32, Int32)This method completely ignores the interlaced characteristics of this image. As a result, the output image is only suitable for display and should NOT be used for analysis.