getOutputImageWidth method

  1. @override
int getOutputImageWidth(
  1. int inputImageHeight,
  2. int inputImageWidth
)
override

Computes the width of the expected output image when input image size is given.

Implementation

@override
int getOutputImageWidth(int inputImageHeight, int inputImageWidth) {
  return (_numRotation % 2 == 0) ? inputImageWidth : inputImageHeight;
}