adjustingPerspective method
Future<Uint8List?>
adjustingPerspective({
- required Uint8List byteData,
- required Contour contour,
override
Based on the given Contour.points
, the perspective is created
and a new image is returned Uint8List
Implementation
@override
Future<Uint8List?> adjustingPerspective({
required Uint8List byteData,
required Contour contour,
}) async {
final newImage = await methodChannel.invokeMethod<Uint8List?>(
'adjustingPerspective',
<String, Object>{
'byteData': byteData,
'points': contour.points
.map(
(e) => {
'x': e.x,
'y': e.y,
},
)
.toList(),
},
);
return newImage;
}