Article View: borland.public.cppbuilder.multimedia
Article #1159Re: Newbie: how to perform frame grabbing?
From: Shaggie
Date: Thu, 16 Aug 2001 21:41
Date: Thu, 16 Aug 2001 21:41
65 lines
3107 bytes
3107 bytes
Found it. I might have guessed it was in the multimedia section on page 20.
Here's the link (it's called video.zip) :-
http://www.vclcomponents.com/download.asp?ID_COMPONENT=15848
You'll have to look at the .h files and example to work things out as there
is no help file or text help. Pretty straightforward though.
Hope this helps to get you started.....
Dave
"Shaggie" <davejohns@btclick.com> wrote in message
news:3b7aeb9e$1_2@dnews...
> 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:
<3b7c3e4b_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!xmission!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3b7a3e1f_1@dnews> <3b7aeb9e$1_2@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-16 14:47:07 PST From: "Shaggie" <davejohns@btclick.com> Newsgroups: borland.public.cppbuilder.multimedia References: <3b7a3e1f_1@dnews> <3b7aeb9e$1_2@dnews> Subject: Re: Newbie: how to perform frame grabbing? Date: Thu, 16 Aug 2001 22:41:41 +0100 Lines: 67 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: <3b7c3e4b_2@dnews> X-Trace: dnews 997998155 213.120.116.66 (16 Aug 2001 14:42:35 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!xmission!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews