Table of Contents

Method SetPixel

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

SetPixel(int, int, Color, bool)

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

public void SetPixel(int x, int y, Color color, bool withAlpha = false)

Parameters

x int

X coordinate of the pixel.

y int

Y coordinate of the pixel.

color Color

New color of the pixel.

withAlpha bool

If 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.