Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid Image Type

When  i run the following program,i got "Invalid Image Type" error message,who can tell me the error reason?
 
Dim srcImg As CWIMAQImage
Dim srcColorInf As CWIMAQColorInformation
 
Set srcImg = New CWIMAQImage
Set srcColorInf = New CWIMAQColorInformation
 
CWIMAQVision1.ReadImage srcImg, App.Path + "\test01.jpg"
CWIMAQVision1.LearnColor srcImg, srcColorInf
0 Kudos
Message 1 of 1
(6,019 Views)