normalizeBuffer method
Future<NormalizedImage?>
normalizeBuffer(
- Uint8List bytes,
- int width,
- int height,
- int stride,
- int format,
- List<
Offset> points, - int rotation,
- 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);
}