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.VisionProAssembly: Cognex.VisionPro.CorePlus (in Cognex.VisionPro.CorePlus.dll) Version: 75.0.0.0
Syntax
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: ICogImageImplements
ICogImage ScaleImage(Int32, Int32)Exceptions
| Exception | Condition |
|---|---|
| CogImageNoPixelsException | If Allocated is false. |
See Also