Das Bild kommt über FireWire, aber ich habe es mit PB noch nicht geschafft es zu bekommen.
Ich hoffe mir kann jemand helfen.
Code: Alles auswählen
Const WM_USER = &H400
Const ws_visible = 0x10000000
Const ws_child = 0x40000000
Const WM_CAP_EDIT_COPY = WM_USER + 30
Const wm_cap_driver_connect = WM_USER + 10
Const wm_cap_set_preview = WM_USER + 50
Const wm_cap_set_overlay = WM_USER + 51
Const WM_CAP_SET_PREVIEWRATE = WM_USER + 52
Const WM_CAP_SEQUENCE = WM_USER + 62
Const WM_CAP_SINGLE_FRAME_OPEN = WM_USER + 70
Const WM_CAP_SINGLE_FRAME_CLOSE = WM_USER + 71
Const WM_CAP_SINGLE_FRAME = WM_USER + 72
Const DVM_DIALOG = WM_USER + 100
Const PREVIEWRATE = 30
Const WM_CAP_STOP = WM_USER + 68
Const WM_CAP_ABORT = WM_USER + 69
declare:
Declare Function capCreateCaptureWindow Lib "avicap32.dll" Alias "capCreateCaptureWindowA"
(lpszWindowName As LPCSTR,dwStyle As DWORD,x As Integer,y As Integer,nWidth As Integer,
nHeight As Integer,hWnd As HWND,nID As Integer) As HWND
einmal aufrufen :
hwndc = capCreateCaptureWindow("CaptureWindow", ws_child Or ws_visible, 10, 25, 310, 325, Form1, 0)
in einer schleife aufrufen ---> bild wird im fenster dargestellt:
call SendMessage(hwndc, wm_cap_driver_connect, 0, 0)
call SendMessage(hwndc, wm_cap_set_preview, 1, 0)
call SendMessage(hwndc, WM_CAP_SET_PREVIEWRATE,PREVIEWRATE, 0)
call SendMessage(hwndc, WM_CAP_EDIT_COPY, 0, 0) --->bild wird hiermit in die ablage kopiert