RenderableImg constructor

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

Creates a container for rendered image data.

API users usually do not need to instantiate this directly - use ImgBase.getRenderableImage to obtain instances.

Parameters

  • width - Rendered image width in pixels
  • height - Rendered image height in pixels
  • bytes - Raw image data suitable for Image.memory

Implementation

RenderableImg(this.width, this.height, this.bytes);