Image.getPixel Method

Retrieves the ARGB color value of the pixel at the point that is specified by the parameters.

Syntax

public int getPixel(int x, int y)

Run On

Client

Parameters

  • x
    Type: int
    The horizontal coordinate of the pixel.
  • y
    Type: int
    The vertical coordinate of the pixel.

Return Value

Type: int
An integer that is the ARGB value of the pixel (a 32-bit representation of an RGB color).

See Also

Image Class

Image.setPixel Method