AForge.Imaging.UnmanagedImage.SetPixel C# (CSharp) Method

SetPixel() public method

Set pixel with the specified coordinates to the specified color.

See SetPixel(int, int, Color) for more information.

public SetPixel ( IntPoint point, Color color ) : void
point IntPoint Point's coordiates to set color for.
color Color Color to set for the pixel.
return void
        public void SetPixel( IntPoint point, Color color )
        {
            SetPixel( point.X, point.Y, color );
        }

Same methods

UnmanagedImage::SetPixel ( int x, int y, Color color ) : void
UnmanagedImage::SetPixel ( int x, int y, byte value ) : void
UnmanagedImage::SetPixel ( int x, int y, byte r, byte g, byte b, byte a ) : void

Usage Example

Beispiel #1
0
 public void dessinePoint(IntPoint point, UnmanagedImage img,int nbPixel,Color col)
 {
     for (int i = point.X - nbPixel / 2; i < point.X + nbPixel / 2 + 1; i++)
     {
         for (int j = point.Y - nbPixel / 2; j < point.Y + nbPixel / 2 + 1; j++)
         {
             img.SetPixel(i, j, col);
         }
     }
 }
All Usage Examples Of AForge.Imaging.UnmanagedImage::SetPixel