VSaveImage方法

描述
將視覺視訊視窗保存至PC驅動盤檔案。

語法
Sub VSaveImage (Sequence As String, Path As String)
Sub VSaveImage (Sequence As String, Path As String, WithGraphics As Boolean)

參數

  • Sequence
    包含目前專案中序列之名稱的字串。
  • Path
    要保存影像之檔案的完整路徑名稱,包括副檔名。
  • WithGraphics
    設定是否要在影像檔中保存序列結果圖形的Boolean運算式。

備註
使用VSaveImage可將視訊顯示器上的影像保存至驅動盤。副檔名:
.bmp
.tif
.jpg
另請參閱
LoadImage方法

VSaveImage範例
VB 例:

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# 例:

bool found;  
m_spel.VRun("Seq");  
m_spel.VGet("Seq", SpelVisionProps.AllFound, out found);  
  
if (\!found)  
    m_spel.VSaveImage("Seq", @"d:\reject.mim");