Browse Source

打印机打印的图片尺寸调整成适合70*80

周素华 1 year ago
parent
commit
e8e1abc723

+ 2 - 2
lib/page/sample_task/reap_sample_detail/reap_sample_task_page.dart

@@ -204,8 +204,8 @@ class _ReapSampleTaskPageState extends BaseLifecycleState<ReapSampleTaskPage> wi
204 204
     Uint8List? bytes = await FileUtils.getBitmapFromContext(ewmKey.currentContext);
205 205
     final codec = await ui.instantiateImageCodec(
206 206
       bytes!,
207
-      targetHeight: 450,
208
-      targetWidth: 80*4,
207
+      targetHeight: 590,
208
+      targetWidth: 580,
209 209
     );
210 210
     final smallImage = (await codec.getNextFrame()).image;
211 211
     ByteData? smallBytes = await smallImage.toByteData(format: ui.ImageByteFormat.png);