Table of Contents

Method SetRGB

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

SetRGB(int, int, RGBValue)

Sets the color of the pixel at the given x and y coordinate.

void SetRGB(int x, int y, RGBValue rgb)

Parameters

x int

X coordinate of the pixel.

y int

Y coordinate of the pixel.

rgb RGBValue

RGB Color.

Remarks

This routine performs bounds-checks for the coordinate so it can be considered a safe way to manipulate the data.