renderBitmap method

  1. @override
Future<void> renderBitmap(
  1. Uint8List bitmap,
  2. BitmapStyle style
)
override

在画布上绘制位图.

Implementation

@override
Future<void> renderBitmap(Uint8List bitmap, BitmapStyle style) async {
  _methodChannel.invokeMethod(Constants.METHOD_CANVAS_RENDER_BITMAP, {
    ParamConstants.BITMAP: bitmap,
    ParamConstants.STYLE: jsonEncode(style.toJson())
  });
}