setPictureSize method

Future<void> setPictureSize(
  1. int width,
  2. int height
)

Sets the dimensions for pictures.

Applications need to consider the display orientation. See setPreviewSize for reference.

Exception on 176x144 (QCIF) resolution: Camera devices usually have a fixed capability for downscaling from larger resolution to smaller, and the QCIF resolution sometimes is not fully supported due to this limitation on devices with high-resolution image sensors. Therefore, trying to configure a QCIF picture size with any preview or video size larger than 1920x1080 (either width or height) might not be supported, and Camera.setParameters might throw a RuntimeException if it is not.

Implementation

Future<void> setPictureSize(int width, int height) {
  return _channel.$setPictureSize(this, width, height);
}