Table of Contents

Method SetPixel

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

SetPixel(PointD, Pen)

Sets the color of the specified pixel in this Graphics.

public abstract void SetPixel(PointD point, Pen pen)

Parameters

point PointD

The coordinates of the pixel to set.

pen Pen

A Pen structure that represents the color to assign to the specified pixel.

Remarks

Not all drawing contexts support this operation.

SetPixel(double, double, Pen)

Sets the color of the specified pixel in this Graphics.

public abstract void SetPixel(double x, double y, Pen pen)

Parameters

x double

The x-coordinate of the pixel to set.

y double

The y-coordinate of the pixel to set.

pen Pen

A Pen structure that represents the color to assign to the specified pixel.

Remarks

Not all drawing contexts support this operation.

SetPixel(double, double, Color)

Sets the color of the specified pixel in this Graphics.

public abstract void SetPixel(double x, double y, Color color)

Parameters

x double

The x-coordinate of the pixel to set.

y double

The y-coordinate of the pixel to set.

color Color

A Color structure that represents the color to assign to the specified pixel.

Remarks

Not all drawing contexts support this operation.