|
-
Jan 6th, 2008, 05:23 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] [2008] Webcam Control.
Just a quick question, does anybody know how to invoke and display a web cams settings page from within an application.
I can display and record the video but I am looking to control frame rate and exposure etc.
I've have a couple of 3rd party applications that show my webcams settings page from within the application so I know it can be done I just don't know how
Thanks in advance for any info.
If my post helps , please feel free to rate it 
-
Jan 6th, 2008, 05:48 AM
#2
Thread Starter
Hyperactive Member
Re: [2008] Webcam Control.
Think I may have found part of the answer but this raises another question, how do I declare this structure in vb.net ?
http://msdn2.microsoft.com/en-gb/lib...73(VS.85).aspx
If my post helps , please feel free to rate it 
-
Jan 6th, 2008, 07:01 AM
#3
Re: [2008] Webcam Control.
That is an unmanaged type. You can't create an instance of that type in managed code. You'd need to declare a managed type that corresponded first:
vb.net Code:
Public Structure CAPDRIVERCAPS Public wDeviceIndex As UInteger Public fHasOverlay As Boolean Public fHasDlgVideoSource As Boolean Public fHasDlgVideoFormat As Boolean Public fHasDlgVideoDisplay As Boolean Public fCaptureInitialized As Boolean Public fDriverSuppliesPalettes As Boolean Public hVideoIn As IntPtr Public hVideoOut As IntPtr Public hVideoExtIn As IntPtr Public hVideoExtOut As IntPtr End Structure
Now you can create an instance of your managed type and pass it to any unmanaged functions that require an instance of the corresponding unmanaged type.
-
Jan 7th, 2008, 03:57 PM
#4
Thread Starter
Hyperactive Member
Re: [2008] Webcam Control.
Thanks JMC
If my post helps , please feel free to rate it 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|