Note that there are some explanatory texts on larger screens.

plurals
  1. POWebcam resolution problem
    primarykey
    data
    text
    <p>I've submitted the question today, which was correctly resolved, but I have another issue.</p> <p>I want the webcam to be 640x480 and it's working, and I want to save it at 640x480 but it's currently saving at 320x240!!</p> <p>This is the code.</p> <pre><code>var bandwidth:int = 0; var quality:int = 100; var cam:Camera = Camera.getCamera(); if(cam==null) trace("err") else { cam.addEventListener(StatusEvent.STATUS,statusHandler); function statusHandler(evt:StatusEvent):void { if(cam.muted) { } else { trace(cam.width) } } cam.setQuality(bandwidth, quality); cam.setMode(8192,6144,30,false); // setMode(videoWidth, videoHeight, video fps, favor area) var videoToCapture:Video = new Video(); videoToCapture.attachCamera(cam); videoToCapture.width=640; videoToCapture.height=480; videoToCapture.x = 12; videoToCapture.y = 13; addChild(videoToCapture); var bitmapDataToCapture:BitmapData = new BitmapData(videoToCapture.width, videoToCapture.height, false, 0x000000); var bitmapToCapture:Bitmap = new Bitmap(bitmapDataToCapture); addChild(bitmapToCapture); bitmapToCapture.x=700; bitmapToCapture.y=13; capture_mc.buttonMode = true; capture_mc.mouseChildren=false; capture_mc.addEventListener(MouseEvent.CLICK,captureImage); function captureImage(e:MouseEvent):void { bitmapDataToCapture.draw(videoToCapture); //bitmapDataToSend.draw(videoToSend); } </code></pre> <p>You can see the problem by looking at this..</p> <p><a href="http://img233.imageshack.us/i/imgmib.jpg/" rel="nofollow">http://img233.imageshack.us/i/imgmib.jpg/</a></p> <p>Thanks for any appreciated help..</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload