0 Replies Latest reply on Oct 21, 2009 8:41 PM by fuyuko1979

    image snapshot from webcam too small

    fuyuko1979

      Hi, I'm trying to create an application where I create a jpeg image of my webcam stream and then save it to the server using amfphp.

      I've got it all working but the image is incredibly small even though I have explicitly set the image width and height.

       

      This is my code:

       

      video.width = 523;
      video.height = 392;
      var snapshot:BitmapData = new BitmapData(523, 392);
      var m:Matrix = new Matrix();
      snapshot.draw(video,m);

       

      I noticed I had this same problem when displaying the video in a videoDisplay component but I was able to fix the problem by explicitly stating the dimensions of the video, this time I am not so lucky...

       

      If anyone can help me I would most appreciate it.

       

      thank you!