RgbaImage.fromBufferImage constructor

RgbaImage.fromBufferImage(
  1. BufferImage image,
  2. {double scale = 1.0}
)

initial from a image

Implementation

RgbaImage.fromBufferImage(BufferImage image, {this.scale = 1.0})
    : bytes = image.buffer,
      width = image.width,
      height = image.height;