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
x
intX coordinate of the pixel.
y
intY coordinate of the pixel.
color
ColorNew color of the pixel.
withAlpha
boolIf 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.