Method SetPixel
SetPixel(PointD, Pen)
Sets the color of the specified pixel in this Graphics.
void SetPixel(PointD point, Pen pen)
Parameters
point
PointDThe coordinates of the pixel to set.
pen
PenA 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.
void SetPixel(double x, double y, Pen pen)
Parameters
x
doubleThe x-coordinate of the pixel to set.
y
doubleThe y-coordinate of the pixel to set.
pen
PenA 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.
void SetPixel(double x, double y, Color color)
Parameters
x
doubleThe x-coordinate of the pixel to set.
y
doubleThe y-coordinate of the pixel to set.
color
ColorA Color structure that represents the color to assign to the specified pixel.
Remarks
Not all drawing contexts support this operation.