Gets the Color of the specified pixel in this FreeImageBitmap.
Namespace:
FreeImageAPIAssembly: 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
Exception | Condition |
---|---|
System..::.Exception | The operation failed. |
System..::.NotSupportedException | The type of this bitmap is not supported. |