![]() |
Re: Webcam Bild (JPG) per FTP-Uploaden
Zitat:
Zitat:
Zitat:
bild_original ist ein TBitmap. Er wird beim start des Programmes erzeugt:
Delphi-Quellcode:
und am ende wieder freigegeben.
initialization
bild_original := TBitmap.Create; bild_original.Width:=800; bild_original.Height:=800; bild_original.PixelFormat:= pf24bit; Zitat:
[pre] .. SendMessage(ghCapWnd, WM_CAP_GRAB_FRAME_NOSTOP, 1, 0); .. hCompatibleBitmap:=bild_original.Handle; //function sets the bits of color data for a bitmap to the specified values. SetBitmapBits(hCompatibleBitmap,VideoHDR^.dwBuffer Length,VideoHDR^.lpData); //return= anzahl bytes //Bild jetzt in Image1original .. [/pre] Wo bei Du aufpassen muß das das ein RGB Bild ist, von der Cam kann auch ein pf1bit, pf4bit, pf8bit, pf15bit, pf16bit, pf24bit, pf32bit Bild sein Ein Gruß |
Re: Webcam Bild (JPG) per FTP-Uploaden
@loetmann
So dann nochmal hierzu: Ich habe die Dateien Leider nicht gefunden. Bitte "loetmann" wäre es möglich, das ich 'ne Kopie von deinem Webcam-Projekt bekommen könnte? Bitte :) Du bist echt meine Letzte Rettung! Gruß i-n |
Re: Webcam Bild (JPG) per FTP-Uploaden
Hallo,
ne da sind zuviele uses drinn die ich nicht rausgeben möchte. Aber ich habe mal die Links geschrieben die mir geholfen haben. Besonders der erste: ![]() ![]() ![]() ![]() ![]() http://delphi.newswhat.com/geoxml/forumhistorythread?groupname=borland.public.delphi .graphics&messageid=3eabe251$1@newsgroups.borland. com http://msdn2.microsoft.com/en-us/library/Aa904813(VS.80).aspx Zum FTP-Upload habe ich das getestet: ![]()
Delphi-Quellcode:
andere ftps sind hier zu finden:ftp.Hostname :=url; ftp.Username :=user; ftp.Password :=pass; //ftp.ChangeRemoteDir(zieldir); ftp.PutFile(quellefile,zielname); ftp.Disconnect(); ![]() benötigte units: ![]() sind eigendlich nicht schwer bei google zu finden("VideoCap, avicap, VideoMci"): unit AviCap: ![]() VideoCap.pas: ![]() VideoMci.pas: ![]() |
Alle Zeitangaben in WEZ +1. Es ist jetzt 00:10 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz