How to get a single pixel's rgba value from a roBitmap

As the title says, I am wondering if there is a function like “bitmap..GetPixel(x,y)”

eg:

alphaVal = bitmap.GetPixel(x,y).alpah

I have tried bitmap[y] but it says I cant index a roBitmap like a array.

You could probably create your own using GetByteArray.

https://developer.roku.com/en-gb/docs/references/brightscript/interfaces/ifdraw2d.md#!