PixMapImage.opIndexAssign

Assigning a color value to an individual pixel through a two-index indexing operation. Note: It is allowed to use as indices values ​​greater than the length and width (or less than 0) as indices, since the values ​​will be converted to the actual length of the image array.

Typical usage:

// creating image of size 20x20, all pixels are black
auto pmi = new PixMapImage(20, 20);   
// pixel at coords (5;5) now are green
pmi[5, 5] = new RGBColor(0, 255, 0);
  1. RGBColor opIndexAssign(RGBColor color, size_t x, size_t y)
    class PixMapImage
    opIndexAssign
    (,
    size_t x
    ,
    size_t y
    )
  2. RGBColor opIndexAssign(RGBColor color, size_t x)

Meta