Input for WinForms | ComponentOne
C1.Framework.Drawing.Gdi.DeviceContexts Namespace / WindowDeviceContext Class / SetPixel Method
Specifies the color to be used to paint the point.
Specifies the coordinate, in logical units, of the point to be set.

In This Topic
    SetPixel Method (WindowDeviceContext)
    In This Topic
    Sets the pixel at the specified coordinates to the closest approximation of the specified color. The point must be in the clipping region and the visible part of the device surface.
    Syntax
    'Declaration
     
    
    Public Sub SetPixel( _
       ByVal color As Color, _
       ByVal point As Point _
    ) 
    public void SetPixel( 
       Color color,
       Point point
    )

    Parameters

    color
    Specifies the color to be used to paint the point.
    point
    Specifies the coordinate, in logical units, of the point to be set.
    See Also