convertBGRA8888ToImage static method

Image convertBGRA8888ToImage(
  1. CameraImage image
)

Implementation

static Image convertBGRA8888ToImage(CameraImage image) {
  return Image.fromBytes(
    width: image.width,
    height: image.height,
    bytes: image.planes[0].bytes.buffer,
    order: ChannelOrder.bgra,
  );
}