Save the content of the scene into an image file with the given width and height as the resolution of the resulting image.
If the filename attribute is not set, the display will show a Save File Dialog to the user
so she can specify the name and location of the file to save the image to.
Namespace: Cognex.VisionPro3DAssembly: Cognex.VisionPro3D.Display.Controls (in Cognex.VisionPro3D.Display.Controls.dll) Version: 69.0.0.0 (69.0.0.0)
Syntax
Parameters
- width
- Type: System Int32
The width of the resulting image file
- height
- Type: System Int32
The height of the resulting image file
- fileName
- Type: System String
The name of the file to save the content of the display to.
Implements
ICog3DDisplayV2 SaveAsImage(Int32, Int32, String)Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | Throws an ArgumentException if the width is 0 or negative. |
See Also