GetPixel()


GetPixelRGBA()


c() = GetPixel(x,y)

This function returns an array which contains the color values for a given pixel on the screen. The values returned are in percent (same as the Color command). This command should be used carefully since alpha blending can return unexpected results.

Dim c(0)

c() = GetPixel(x,y)

c(0) = red

c(1) = green

c(2) = blue

c(3) = alpha


c() = GetPixelRGBA(x,y)

This function returns an array which contains the color values for a given pixel on the screen. The values returned are in the standard RGBA format (0-255). For absolute color precision use this command.






Become a Patron