From e0d275a09b21be09fd24ce95ae1630a345181355 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Tue, 15 Apr 2008 04:32:38 +0000 Subject: [PATCH] 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 --- src/as/com/threerings/flash/CameraSnapshotter.as | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/as/com/threerings/flash/CameraSnapshotter.as b/src/as/com/threerings/flash/CameraSnapshotter.as index b30ab996..19848498 100644 --- a/src/as/com/threerings/flash/CameraSnapshotter.as +++ b/src/as/com/threerings/flash/CameraSnapshotter.as @@ -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) {