convertBGRA8888ToImage static method

Image convertBGRA8888ToImage(
  1. int width,
  2. int height,
  3. Uint8List bytes
)

Implementation

static Image convertBGRA8888ToImage(int width, int height, Uint8List bytes) {
  return Image.fromBytes(
    width: width,
    height: height,
    bytes: bytes.buffer,
    order: ChannelOrder.bgra,
  );
}