normalizeBuffer method

  1. @override
Future<NormalizedImage?> normalizeBuffer(
  1. Uint8List bytes,
  2. int width,
  3. int height,
  4. int stride,
  5. int format,
  6. List<Offset> points,
  7. int rotation,
  8. ColorMode color,
)
override

Normalizes the image.

Parameters:

  • bytes: image bytes.
  • width: image width.
  • height: image height.
  • stride: image stride.
  • format: image format.
  • points: document points.
  • rotation: image rotation.

Returns a NormalizedImage on success, or null if the image could not be normalized.

Implementation

@override
Future<NormalizedImage?> normalizeBuffer(
    Uint8List bytes,
    int width,
    int height,
    int stride,
    int format,
    List<Offset> points,
    int rotation,
    ColorMode color) async {
  return _ddnManager.normalizeBuffer(
      bytes, width, height, stride, format, points, rotation, color);
}