Good day,
I'm building up a project in "AIR for Android" (AS3), it consists in connecting a camera(Fully functional), then do it like a game in PSVITA, cut only the face of a person after taking a picture of herself, i'm having a hard time developing this part. I downloaded Android SDK, how can i use this in AS3? Someone told me that with Google API's from Android SDK, i would be able to fulfill what i want.
My code is:
var camera:Camera = Camera.getCamera();
var rec:Rectangle = new Rectangle(0,0,0,0);
if (camera != null)
{
v.attachCamera(camera);
addChild(v);
}
else
{
trace("You need a camera.");
}
ScreenshotButton.addEventListener(MouseEvent.CLICK,takescreenshotHandler);
function takescreenshotHandler(event:MouseEvent):void{
bitmapData.draw(v);
}
Any help would be appreciated.