getScaledRow method

Uint8List getScaledRow(
  1. int scale
)

This function scales the row

@param scale How much you want the image to be scaled, must be greater than or equal to 1. @return the scaled row

Implementation

Uint8List getScaledRow(int scale) {
  final output = Uint8List(_row.length * scale);
  for (int i = 0; i < output.length; i++) {
    output[i] = _row[i ~/ scale];
  }
  return output;
}