Registriert seit: 29. Jan 2007
Ort: Erkelenz
224 Beiträge
Delphi 7 Enterprise
|
Re: Webcam-Schnappschuss - OHNE(!) zwischenspeichern
28. Jul 2009, 17:12
Delphi-Quellcode:
function GetWebcamSS:TBitmap;
var
bmi: BITMAPINFO;
begin
if isConnected then
begin
SendMessage(CaptureWindow, WM_CAP_SET_VIDEOFORMAT, 0, integer(@bmi));
SendMessage(CaptureWindow, WM_CAP_GRAB_FRAME, 0, 0);
Result:=TBitmap.Create;
Result.PixelFormat := pf24Bit;
SendMessage(CaptureWindow,WM_CAP_EDIT_COPY,1,0);
Result.LoadFromClipboardFormat(cf_BitMap,ClipBoard.GetAsHandle(cf_Bitmap),0);
end;
end;
... gefunden
|
|
Zitat
|