🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Solved : USB Camera Image Size

#29
From: Andrew
Date: Sat, 25 Mar 2006 08:49
34 lines
1852 bytes
"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: <4425123b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <440b5d33$1@newsgroups.borland.com> <44225648$1@newsgroups.borland.com> <4422bd19$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: "Andrew" <mcisaacame@shaw.ca>
Sender: "Andrew" <mcisaacame@shaw.ca>
Reply-To: "Andrew" <mcisaacame@shaw.ca>
Subject: Re: Solved : USB Camera Image Size
Newsgroups: borland.public.cppbuilder.multimedia
X-User-Info: 24.70.95.203     
X-Forwarded-For: 68.148.133.2
References:  <440b5d33$1@newsgroups.borland.com> <44225648$1@newsgroups.borland.com> <4422bd19$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4425123b$1@newsgroups.borland.com>
Date: 25 Mar 2006 01:49:47 -0700
X-Trace: newsgroups.borland.com 1143280187 207.105.83.66 (25 Mar 2006 01:49:47 -0700)
Lines: 39
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail