Oh hey, you can set the size of video capture. Me likey!

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@464 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Ray Greenwell
2008-04-15 04:32:38 +00:00
parent d62ed1884c
commit e0d275a09b
@@ -90,6 +90,17 @@ public class CameraSnapshotter extends Sprite
return (_camera == null) ? null : _camera.name;
}
/**
* Just like Camera's setMode().
* @see flash.media.Camera#setMode()
*/
public function setMode (width :int, height :int, fps :Number, favorArea :Boolean = true) :void
{
_camera.setMode(width, height, fps, favorArea);
_video.width = _camera.width;
_video.height = _camera.height;
}
public function takeSnapshot () :void
{
if (_camera == null) {