Bitmap.GetPixel
Bitmap.GetPixel method
Gets the color of the specified pixel in this Bitmap
.
public Color GetPixel(int x, int y)
Parameter | Type | Description |
---|---|---|
x | Int32 | The x-coordinate of the pixel to retrieve. |
y | 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 |
---|---|
ArgumentOutOfRangeException | x is less than 0, or greater than or equal to Width. ory is less than 0, or greater than or equal to Height |
Exception | The operation failed. |
See Also
- struct Color
- class Bitmap
- namespace Aspose.Page.Drawing
- assembly Aspose.Page