0

Is there a way to know the max resolution of a webcam ? I need to capture images from webcam and send its on another notebook throught internet.

So I want to capture images at max resolution indipendently from webcam automatically without setting the resolution every time ( if I have a webcam with 1.3 MPixel, I want to capture images at 1.3 MPixel; If I have a webcam with 640x480 Pixel, I want to capture images at 640x480 Pixel; and so on... ).

How can I do that ?

xRobot
  • 25,579
  • 69
  • 184
  • 304

1 Answers1

1

You will need the camera object

var cam:Camera = new Camera();

and you will use the camera's width and height which are in pixels. Then you can do whatever you like it with it. Example:

var bitp:BitmapData = new BitmapData(cam.width, cam.height); 
var img:Bitmap = new Bitmap(bitp);
phwd
  • 19,975
  • 5
  • 50
  • 78
  • 1
    This provided the camera's default size, *not* the max resolution (there's a big difference). – hunter Jul 11 '13 at 12:00