loadImageByFile method
通过文件读取Image
Implementation
Future<ui.Image> loadImageByFile(
File file, {
int? width,
int? height,
}) async {
var list = await file.readAsBytes();
return loadImageByUint8List(list, width: width, height: height);
}
通过文件读取Image
Future<ui.Image> loadImageByFile(
File file, {
int? width,
int? height,
}) async {
var list = await file.readAsBytes();
return loadImageByUint8List(list, width: width, height: height);
}