Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
_creare_
Level 8

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