0

我需要捕捉并使用我的手指或笔在图像上的某个位置标记并将其保存到文件中;

这个怎么做 ?

我使用这个功能。

function capturePhotoEdit() {
  // Take picture using device camera, allow edit, and retrieve image as base64-encoded string  
  navigator.camera.getPicture(onPhotoDataSuccess, onFail, { destinationType: Camera.DestinationType.FILE_URI,quality: 20, **allowEdit**: true }); 
}
4

2 回答 2

2

如 CameraOptions 的Android Quirks 部分所述,不支持 allowEdit 参数。

如果要标记图片,则需要将其加载到画布元素中并自己在其上绘制。

于 2012-12-28T13:22:10.817 回答
0

在这里查看我的拉取请求

把事情简单化 :)

于 2014-02-12T19:36:27.903 回答