PImage.empty constructor

PImage.empty(
  1. int width,
  2. int height,
  3. ImageFileFormat format
)

Implementation

PImage.empty(int width, int height, ImageFileFormat format)
    : _width = width,
      _height = height,
      _format = format {
  _pixels = ByteData(width * height * 4);
}