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