user1190524
user1190524

Reputation: 65

flex mobile camera size

I am capturing camera on flex for android using air 3.1 and found that the camera is only showing the a part of of actual camera video. When i view camera using normal camera application in android galaxy tab, it shows full camera area but when i am capturing the camera in flex its showing only the center area for it.

I tried using setMode to set the resolution, but its not of any use.

Is there any way to get full camera area captured inside flex using camera.getCamera ?

Any help will be highly appreciated.

Thanks

Upvotes: 0

Views: 1678

Answers (1)

Adrian Pirvulescu
Adrian Pirvulescu

Reputation: 4340

Maybe this post can help you How to increase the Quality of the camera using AS3?

Since you did not posted any code in how to set the scaleMode here is some code

// support autoOrients
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
cam = Camera.getCamera();

cam.setMode(640, 480, 25); 
cam.setQuality(0,100);
vid             = new Video();
vid.width       = cam.width;
vid.height      = cam.height; 
vid.attachCamera(cam);
addChild(vid);    

Upvotes: 2

Related Questions