Skip to content

Instantly share code, notes, and snippets.

@minodisk
Created June 27, 2012 09:56
Show Gist options
  • Select an option

  • Save minodisk/3003056 to your computer and use it in GitHub Desktop.

Select an option

Save minodisk/3003056 to your computer and use it in GitHub Desktop.
自分撮りコンテンツのカメラの設定
var bmd:BitmapData = new BitmapData(video.width, video.height, true, 0);
bmd.draw(video, video.transform.matrix);
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);
}
@minodisk

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment