Get color of the pixel with the specified coordinates.
Namespace:
AForge.ImagingAssembly: AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)
Syntax
Parameters
- x
- Type: System..::.Int32
X coordinate of the pixel to get.
- y
- Type: System..::.Int32
Y coordinate of the pixel to get.
Return Value
Return pixel’s color at the specified coordinates.
Remarks
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentOutOfRangeException | The specified pixel coordinate is out of image’s bounds. |
| AForge.Imaging..::.UnsupportedImageFormatException | Pixel format of this image is not supported by the method. |