You could:
1-Grab a single pixel from the screen as an image - GetImage()
2-Convert it to a memblock - CreateMemblockFromImage()
3-Use spectrepaul's function to get the pixel data with a slight tweak:
type pixelType
R as integer
G as integer
B as integer
A as integer
endtype
function GetPixel ( memBlockIn, x, y )
offsetPixel = 12 + (( x + ( y )) * 4 )
pixel as pixelType
pixel.R = GetMemBlockByte ( memBlockIn, offsetPixel )
pixel.G = GetMemBlockByte ( memBlockIn, offsetPixel + 1 )
pixel.B = GetMemBlockByte ( memBlockIn, offsetPixel + 2 )
pixel.A = GetMemBlockByte ( memBlockIn, offsetPixel + 3 )
endfunction pixel
// Usage
p as pixelType
p = GetPixel(memblock, 0, 0)
// pixel red = p.R
// pixel green = p.G
// pixel blue = p.B
// pixel alpha = p.A
Using AppGameKit V2 Tier 1