Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
_creare_
Channel Surfer

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[x][y] but it says I cant index a roBitmap like a array.

0 Kudos
1 REPLY 1
renojim
Community Streaming Expert

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

You could probably create your own using GetByteArray.

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

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.