🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #31

Re: Solved : USB Camera Image Size

#31
From: EB
Date: Mon, 27 Mar 2006 14:07
44 lines
2222 bytes
That didn't change anything. Maybe because you set "size" to something but 
never use it to set something else.
EB
"Andrew" <mcisaacame@shaw.ca> wrote in message 
news:4425123b$1@newsgroups.borland.com...
>
> "Clayton Arends" wrote:
> ...What is the answer you came up with...
>
> I added a few lines to the previously submitted code :
>
> in my Button1 (Start cam) function:
>
>  int       size; // New Line
>  CAPSTATUS CapStatus;  // New Line
>
>    Panel_Video1->Visible=true;
>    CaptureWindow = capCreateCaptureWindow("MyWindow",
>      WS_CHILD | WS_VISIBLE, 0, 0, x, y, (HWND)
>    Panel_Video1_Placement->Handle, 0);
>
>    if(CaptureWindow)
>    {
>      // NEW LINES following
>      capDlgVideoFormat(CaptureWindow);
>      capGetStatus(CaptureWindow, &CapStatus, sizeof
>        (CAPSTATUS));
>      size = GetSystemMetrics(SM_CYMENU);
>      size += GetSystemMetrics(SM_CYCAPTION);
>      // END of NEW LINES
>      ComboBox1->ItemIndex=0;
>      if(capDriverConnect(CaptureWindow,
>        ComboBox1->ItemIndex)) ....
>
> Someday I hope to understand what I'm doing.
>
> Hope this helps.
>
> Andrew
>
>
>
>
> 
Technical Details
Message-ID: <4427f1d5$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <440b5d33$1@newsgroups.borland.com> <44225648$1@newsgroups.borland.com> <4422bd19$1@newsgroups.borland.com> <4425123b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10d0fc,556000b51f24f600
X-Google-Attributes: gid10d0fc,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "EB" <elias.berelian@snet.net>
Newsgroups: borland.public.cppbuilder.multimedia
References:  <440b5d33$1@newsgroups.borland.com> <44225648$1@newsgroups.borland.com> <4422bd19$1@newsgroups.borland.com> <4425123b$1@newsgroups.borland.com>
Subject: Re: Solved : USB Camera Image Size
Date: Mon, 27 Mar 2006 09:07:54 -0500
Lines: 46
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 144.160.5.25
Message-ID: <4427f1d5$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1143468501 144.160.5.25 (27 Mar 2006 06:08:21 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail