Sets the Color of the specified pixel in this FreeImageBitmap.
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
public void SetPixel( int x, int y, Color color ) |
Visual Basic (Declaration) |
---|
Public Sub SetPixel ( _ x As Integer, _ y As Integer, _ color As Color _ ) |
Visual C++ |
---|
public: void SetPixel( int x, int y, Color color ) |
Parameters
- x
- Type: System..::.Int32
The x-coordinate of the pixel to set.
- y
- Type: System..::.Int32
The y-coordinate of the pixel to set.
- color
- Type: System.Drawing..::.Color
A Color structure that represents the color to assign to the specified pixel.
Exceptions
Exception | Condition |
---|---|
System..::.Exception | The operation failed. |
System..::.NotSupportedException | The type of this bitmap is not supported. |