|
打开拍照界面:
FNPhotograph = api.require('FNPhotograph');
FNPhotograph.openCameraView({
rect : {
x : '0',
y : headerPos.h,
w : headerPos.w,
h : hight
},
orientation : 'portrait',
fixedOn : api.frameName,
fixed : true
}, function(ret) {
//alert(JSON.stringify(ret));
});
执行拍照:
FNPhotograph.takePhoto({
quality : 'high',
path : 'fs://FNPhotograph/10.png',
album : true
}, function(ret) {
api.toast({
msg : 'Success',
duration : 1000,
location : 'middle'
});
$("#takebtn").show();
});
|
|