![]() ![]() (ByVal hwnd As Integer, ByVal wMsg As Integer, ByVal wParam As Integer, _ Private hHwnd As Integer ' Handle to preview windowĭeclare Function SendMessage Lib "user32" Alias "SendMessageA" _ Private DeviceID As Integer = 0 ' Current device ID Public Const WM_CAP_DLG_VIDEOFORMAT As Integer = WM_CAP + 41Ĭonst WM_CAP_SET_PREVIEW As Integer = WM_CAP + 50Ĭonst WM_CAP_SET_PREVIEWRATE As Integer = WM_CAP + 52Ĭonst WM_CAP_SET_SCALE As Integer = WM_CAP + 53 Public Const WM_CAP_GET_STATUS As Integer = WM_CAP + 54 Imports Ĭonst WM_CAP_DRIVER_CONNECT As Integer = WM_CAP + 10Ĭonst WM_CAP_DRIVER_DISCONNECT As Integer = WM_CAP + 11Ĭonst WM_CAP_EDIT_COPY As Integer = WM_CAP + 30 I have tried this method just a day back with small modifications in the code.For me the image stream as well as the capture is working great.i will place my code here.you can have your modification for application to work for you.
0 Comments
Leave a Reply. |