Sets the Color of the specified pixel in this FreeImageBitmap.

Namespace:  FreeImageAPI
Assembly:  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

ExceptionCondition
System..::.ExceptionThe operation failed.
System..::.NotSupportedExceptionThe type of this bitmap is not supported.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also