rotate static method
图片旋转操作
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;
}