rotate static method

Uint8List rotate(
  1. Uint8List srcU8,
  2. num angle
)

图片旋转操作

Implementation

static Uint8List rotate(Uint8List srcU8, num angle) {
  final sImage = image_lib.decodeImage(srcU8);
  final rotateImage = image_lib.copyRotate(sImage!, angle);
  final newU8 = image_lib.writePng(rotateImage) as Uint8List;
  return newU8;
}