Created
June 27, 2012 09:56
-
-
Save minodisk/3003056 to your computer and use it in GitHub Desktop.
自分撮りコンテンツのカメラの設定
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var bmd:BitmapData = new BitmapData(video.width, video.height, true, 0); | |
| bmd.draw(video, video.transform.matrix); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var camera:Camera = Camera.getCamera(); | |
| if (camera) { | |
| camera.setMode(WIDTH * 2, HEIGHT * 2, stage.frameRate); | |
| var video:Video = new Video(WIDTH, HEIGHT); | |
| video.x = WIDTH; | |
| video.scaleX = -1; | |
| video.smoothing = true; | |
| video.attachCamera(camera); | |
| addChild(video); | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://qiita.com/items/a2aa9974ef896dd86a4c