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:
@@ -90,6 +90,17 @@ public class CameraSnapshotter extends Sprite
|
|||||||
return (_camera == null) ? null : _camera.name;
|
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
|
public function takeSnapshot () :void
|
||||||
{
|
{
|
||||||
if (_camera == null) {
|
if (_camera == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user