Article View: borland.public.cppbuilder.multimedia
Article #1157Re: Newbie: how to perform frame grabbing?
From: Shaggie
Date: Wed, 15 Aug 2001 21:36
Date: Wed, 15 Aug 2001 21:36
47 lines
2480 bytes
2480 bytes
Yes, I'm working on something similar at that moment.
Try having a look through the winapi help or view your mmedia.hlp file that
comes with builder.
The jist of it is that you load the avicap32.dll and then use
capCreateCaptureWindow function like this:-
AVICapDllHandle = LoadLibrary ( "AVICAP32.DLL" );
if ( AVICapDllHandle == 0 )
{
MessageBox ( NULL, "LoadLibrary:\nAVICAP32.DLL not found.",
"Error FS 002", MB_ICONSTOP );
}
HWND hForm = Form1 -> Handle;
hWndC = capCreateCaptureWindow ( "WebCamWin", WS_CHILD | WS_VISIBLE,
20, 20, 320, 240, hForm, 0 );
You can then use other functions etc to save to disk etc., but you'll have
to look those up in the help files.
Otherwise there is a video capture component the www.vclcomponents.com
website called video.zip (just search for it, I can't remember what section
it's in) You might find it quite interesting. It's quite a bit easier than
delving into the depths of the winapi but it's not as versatile.
Dave
"Piero Salandin" <piero.salandin@libero.it> wrote in message
news:3b7a3e1f_1@dnews...
> I have to build up a program using C++Builder which grabs images from an
> external device like a video camera, and then "freeze" and save as an
image
> (various formats). I do know almost nothing of the topic, but I suppose
> there is a Windows common interface on this, and the key should be to use
> these APIs.
>
> Please anyone have hints to give? Where to start from?
>
> Thanks a lot.
>
>
> --
> Ing. Piero Salandin
> piero.salandin@libero.it
>
>
>
Technical Details
Message-ID:
<3b7aeb9e$1_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsReferences:
<3b7a3e1f_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d0fc,12dea99c3ce35354 X-Google-Attributes: gid10d0fc,public X-Google-ArrivalTime: 2001-08-15 14:44:39 PST From: "Shaggie" <davejohns@btclick.com> Newsgroups: borland.public.cppbuilder.multimedia References: <3b7a3e1f_1@dnews> Subject: Re: Newbie: how to perform frame grabbing? Date: Wed, 15 Aug 2001 22:36:36 +0100 Lines: 49 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: 213.120.116.66 Message-ID: <3b7aeb9e$1_2@dnews> X-Trace: dnews 997911454 213.120.116.66 (15 Aug 2001 14:37:34 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews