A constructor function that creates an image with the given length, width, and format. By default, all parameters are 0, and the format is represented by the "P6" value, which corresponds to an image with a P6 format.
Width of image as size_t value.
Height of image as size_t value.
Image format as string
Typical usage:
auto img = image(20, 20, "P3"); // creates image with P3 format type
See Implementation
A constructor function that creates an image with the given length, width, and format. By default, all parameters are 0, and the format is represented by the "P6" value, which corresponds to an image with a P6 format.