0

我在下面有这段代码,我想在拍照时调整照片大小。我已经尝试过 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();
        };
     });
4

0 回答 0