Function Image.getPixel

Returns the color of the pixel at (x, y) if the image is locked. If the image is unlocked, it always returns a Color with the value (0, 0, 0, 1.0). This is the same as getPixelv, but two integer arguments instead of a Vector2 argument.

Color getPixel (
  const(long) x,
  const(long) y
) nothrow @nogc const;