VSaveImage Method
Description
Save a vision video window to a PC disk file.
Syntax
Sub VSaveImage (Sequence As String, Path As String)
Sub VSaveImage (Sequence As String, Path As String, WithGraphics As Boolean)
Parameters
- Sequence
A character string indicating the sequence name in the current project. - Path
The full path name of the file to save the image to, including the extension. - WithGraphics
A Boolean expression that determines whether to save the sequence result image to an image file.
Remarks
Use VSaveImage to save an image on the Video display to disk. The file extension must be
BMP,
TIF,
or JPG.
See Also
LoadImage Method
VSaveImage Example
VB Examples:
Dim found As Boolean
m_spel.VRun("Seq")
m_spel.VGet("Seq", SpelVisionProps.AllFound, found)
If Not found Then
m_spel.VSaveImage("Seq", "d:\reject.mim")
End If
C# Example:
bool found;
m_spel.VRun("Seq");
m_spel.VGet("Seq", SpelVisionProps.AllFound, out found);
if (\!found)
m_spel.VSaveImage("Seq", @"d:\reject.mim");