Gets the Color of the specified pixel in this FreeImageBitmap.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public Color GetPixel(
	int x,
	int y
)
Visual Basic (Declaration)
Public Function GetPixel ( _
	x As Integer, _
	y As Integer _
) As Color
Visual C++
public:
Color GetPixel(
	int x, 
	int y
)

Parameters

x
Type: System..::.Int32
The x-coordinate of the pixel to retrieve.
y
Type: System..::.Int32
The y-coordinate of the pixel to retrieve.

Return Value

A Color structure that represents the color of 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