如何解决如何在imageCapture.takePhoto中更改默认的捕获图像大小?
下面有此代码,我想在拍摄照片时调整照片大小。我已经尝试过getPhotoCapabilities和getSettings,但是它不起作用。有人能帮助我吗??我在角组件中
try {
this.imageCapture.takePhoto()
this.imageCapture.takePhoto().then(blob => {
const reader = new FileReader();
reader.readAsDataURL(blob);
reader.onloadend = () => {
const base64 = reader.result;
const capture = new Capture(base64.toString());
capture.id = this.imagesCaptured;
this.currentCaptures.push(capture);
this.imagesCaptured++;
this.captureImage();
};
});
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。