JSI
2007-08-17 19:10:19 UTC
Hello,
I am using VideoCapX control from Fath Software to capture image, the method I want to use is GetRGB. The reference for this method is as following:
VideoCapX control
Fath Software
GetRGB method
Returns current video frame image as array of RGB values.
Syntax
Function GetRGB
Return value(none)
Remarks.
ExampleDim a() As Bytea = VideoCapX1.GetRGBFor y = 0 To 239 'image height is 240 pixels in this caseFor x = 0 To 319 '320 pixelsi = (y * (320 * 3)) + (x * 3)'NOTE: byte order isn't RGB, it's BGRPSet (x, y), RGB(a(i + 2), a(i + 1), a(i))Next xNext y
Does any body know how to convert the array to IMAQ image?
Thanks,
JSI
I am using VideoCapX control from Fath Software to capture image, the method I want to use is GetRGB. The reference for this method is as following:
VideoCapX control
Fath Software
GetRGB method
Returns current video frame image as array of RGB values.
Syntax
Function GetRGB
Return value(none)
Remarks.
ExampleDim a() As Bytea = VideoCapX1.GetRGBFor y = 0 To 239 'image height is 240 pixels in this caseFor x = 0 To 319 '320 pixelsi = (y * (320 * 3)) + (x * 3)'NOTE: byte order isn't RGB, it's BGRPSet (x, y), RGB(a(i + 2), a(i + 1), a(i))Next xNext y
Does any body know how to convert the array to IMAQ image?
Thanks,
JSI