Method SetPixel
SetPixel(int, int, Color, bool)
Sets the color of the pixel at the given x and y coordinate.
void SetPixel(int x, int y, Color color, bool withAlpha = false)
Parameters
xintX coordinate of the pixel.
yintY coordinate of the pixel.
colorColorNew color of the pixel.
withAlphaboolIf true alpha channel is also set from
color.
Remarks
This routine performs bounds-checks for the coordinate so it can be considered a safe way to manipulate the data.