RasterImage.GetPixel

RasterImage.GetPixel method

Gets an image pixel. Performance Warning: Avoid using this method to iterate over all image pixels as it can lead to significant performance issues. For more efficient pixel manipulation, use the LoadArgb32Pixels method to retrieve the entire pixel array simultaneously.

public Color GetPixel(int x, int y)
ParameterTypeDescription
xInt32The pixel x location.
yInt32The pixel y location.

Return Value

The pixel color for the specified location.

See Also