VintaSoft Twain .NET SDK Discussions

Questions, comments and suggestions concerning VintaSoft Twain .NET SDK.

Board index < VintaSoft Twain < VintaSoft Twain .NET SDK Discussions

We are migrating to new forums engine, no new registration or posting currently available. TIA for your patience.

Setting webcam resolution;



Setting webcam resolution;

Post by GabVap »

Hi,

I'm trying to get/set resolutions for a webcam, but the GetResolutions method returns an empty array, and any value other than the default (75) i try to put in for the resolution cause the error "error to set capability value". Any ideas what i may be doing wrong?


Re: Setting webcam resolution;

Post by Alex »

Hello,

What camera do you have? I think your camera supports only 75 dpi resolution.

Best regards, Alexander


Re: Setting webcam resolution;

Post by GabVap »

I have a HP Elite Autofocus webcam. I can change resolution if I use the app that comes with the webcam, (it`s supposed to be a 19.1 Megapixel webcam), so i know it supports more than one. I just can't seem to be able to get the correct values or set them.


Re: Setting webcam resolution;

Post by GabVap »

Maybe i'm not clear with my question.

One of my coworker tells me that 75 dpi is the default and only value for the dpi property of cameras, so maybe i'm not trying to change the right property.

My problem is, the photos i take are coming out in VGA quality (640x480). When i use the app supplied with the camera, i can go up to 5120x3840, and i've got many choice in between (800x600, 960x720, 1024x768.. etc..) That's what i'm trying to change. Anyway to get and set those values? Or would you need any other information to be able to help me?


Re: Setting webcam resolution;

Post by Alex »

Hello,

Most of webcam drivers allow to change resolution only from the User Interface.

Please use the Device.GetSupportedHorizontalResolutions and Device.GetSupportedVerticallResolutions methods and get resolutions supported by webcam.

Best regards, Alexander


Re: Setting webcam resolution;

Post by Alex »

Hello,

VintaSoftTwain.NET SDK allows to work with any TWAIN devices, this means that you need to have TWAIN or WIA driver for your device (webcam).

Best regards, Alexander


Page 1 from 1: 1