PixMapImage.this

A constructor for creating an image with given dimensions (length and width) and starting color for pixels. By default, all values ​​are zero, and black (i.e: RGBColor(0, 0, 0)) is used as the starting color.

class PixMapImage
this
(
size_t width = 0
,
size_t height = 0
,
RGBColor color = new RGBColor(0, 0, 0)
)

Parameters

width size_t

Width of image as size_t value.

height size_t

Height of image as size_t value.

color RGBColor

Initial color for pixels in image.

Typical usage:

// creating of empty image
PixMapImage pmi = new PixMapImage;  									

// creating image of size 20x20, all pixels are black
PixMapImage pmi2 = new PixMapImage(20, 20);								

// creating image of size 20x20, all pixels are red
PixMapImage pmi3 = new PixMapImage(20, 20, new RGBColor(255, 0, 255));

Meta