FreeImage.NET Class Library Reference
FreeImageBitmapGetPixel Method |
Gets the Color of the specified pixel in this FreeImageBitmap.
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public Color GetPixel( int x, int y )
Parameters
- x
- Type: SystemInt32
The x-coordinate of the pixel to retrieve. - y
- Type: SystemInt32
The y-coordinate of the pixel to retrieve.
Return Value
Type: ColorA Color structure that represents the color of the specified pixel.
Exceptions
Exception | Condition |
---|---|
Exception | The operation failed. |
NotSupportedException | The type of this bitmap is not supported. |
See Also