ICog3DDisplayV2 SaveAsImage Method (Int32, Int32, String)Cognex VisionPro 9.7
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.VisionPro3D
Assembly: Cognex.VisionPro3D.Display.Controls (in Cognex.VisionPro3D.Display.Controls.dll) Version: 73.0.0.0 (73.0.0.0)
Syntax

void SaveAsImage(
	int width,
	int height,
	string fileName
)

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.
Exceptions

ExceptionCondition
ArgumentException Throws an ArgumentException if the width is 0 or negative.
ArgumentException Throws an ArgumentException if the height is 0 or negative.
See Also