PImage.fromPixels constructor

PImage.fromPixels(
  1. int width,
  2. int height,
  3. ByteData pixels,
  4. ImageFileFormat format,
)

Implementation

PImage.fromPixels(int width, int height, ByteData pixels, ImageFileFormat format)
    : _width = width,
      _height = height,
      _format = format,
      _pixels = pixels;