SimpleBMPImage.setPixel - multiple declarations

Function SimpleBMPImage.setPixel

Sets the color of a pixel at a specified position in a 2D grid.

void setPixel (
  int x,
  int y,
  int red,
  int green,
  int blue
) pure @nogc;

The pixel is identified by its x and y coordinates, with the origin (0,0) located at the lower-left corner of the grid. The color of the pixel is defined by the red, green, and blue components, each ranging from 0 to 255.

Parameters

NameDescription
x The X coordinate of the pixel (origin at lower left).
y The Y coordinate of the pixel (origin at lower left).
red The intensity of the red color component (0 to 255).
green The intensity of the green color component (0 to 255).
blue The intensity of the blue color component (0 to 255).

Function SimpleBMPImage.setPixel

dito

void setPixel (
  int x,
  int y,
  RGBPixel px
) pure @nogc;