Package | com.threerings.display |
Class | public class CameraSnapshotter |
Inheritance | CameraSnapshotter ![]() |
Property | Defined by | ||
---|---|---|---|
height : Number [read-only]
| CameraSnapshotter | ||
width : Number [read-only]
| CameraSnapshotter |
Property | Defined by | ||
---|---|---|---|
_bitmap : Bitmap | CameraSnapshotter | ||
_camera : Camera | CameraSnapshotter | ||
_correctionHeight : int | CameraSnapshotter | ||
_correctionWidth : int | CameraSnapshotter | ||
_video : Video | CameraSnapshotter |
Method | Defined by | ||
---|---|---|---|
CameraSnapshotter(cameraName:String = null)
| CameraSnapshotter | ||
clearSnapshot():void
| CameraSnapshotter | ||
getCameraName():String
| CameraSnapshotter | ||
getSnapshot():BitmapData
| CameraSnapshotter | ||
hasCamera():Boolean
[static]
Static method to determine if the user even has a camera.
| CameraSnapshotter | ||
setCamera(camera:Camera):void
| CameraSnapshotter | ||
setCameraName(cameraName:String = null):void
| CameraSnapshotter | ||
setMode(width:int, height:int, fps:Number, favorArea:Boolean = true):void
Just like Camera's setMode().
| CameraSnapshotter | ||
takeSnapshot():void
| CameraSnapshotter |
Method | Defined by | ||
---|---|---|---|
attachVideo():void
| CameraSnapshotter | ||
detachVideo():void
| CameraSnapshotter | ||
handleCameraStatus(event:StatusEvent):void
| CameraSnapshotter | ||
setCorrection():void
There appears to be a bug with the camera that "locks" it to the size it was at when
it was unmuted.
| CameraSnapshotter |
_bitmap | property |
protected var _bitmap:Bitmap
_camera | property |
protected var _camera:Camera
_correctionHeight | property |
protected var _correctionHeight:int
_correctionWidth | property |
protected var _correctionWidth:int
height | property |
height:Number
[read-only]Implementation
public function get height():Number
_video | property |
protected var _video:Video
width | property |
width:Number
[read-only]Implementation
public function get width():Number
CameraSnapshotter | () | constructor |
public function CameraSnapshotter(cameraName:String = null)
Parameters
cameraName:String (default = null )
|
See also
attachVideo | () | method |
protected function attachVideo():void
clearSnapshot | () | method |
public function clearSnapshot():void
detachVideo | () | method |
protected function detachVideo():void
getCameraName | () | method |
public function getCameraName():String
Returns
String |
getSnapshot | () | method |
public function getSnapshot():BitmapData
Returns
BitmapData |
handleCameraStatus | () | method |
protected function handleCameraStatus(event:StatusEvent):void
Parameters
event:StatusEvent |
hasCamera | () | method |
public static function hasCamera():Boolean
Static method to determine if the user even has a camera.
ReturnsBoolean |
setCamera | () | method |
public function setCamera(camera:Camera):void
Parameters
camera:Camera |
setCameraName | () | method |
public function setCameraName(cameraName:String = null):void
Parameters
cameraName:String (default = null ) — the actual name of the camera, not the index (as used to get it from
the Camera class).
|
setCorrection | () | method |
protected function setCorrection():void
There appears to be a bug with the camera that "locks" it to the size it was at when it was unmuted.
setMode | () | method |
public function setMode(width:int, height:int, fps:Number, favorArea:Boolean = true):void
Just like Camera's setMode().
Parameterswidth:int |
|
height:int |
|
fps:Number |
|
favorArea:Boolean (default = true )
|
See also
takeSnapshot | () | method |
public function takeSnapshot():void