Dynamically changing parts of the theme? Write BMPs?

Hey.

Trying to change the GridScreenFocusBorderHD attribute based on what grid section you’re in. So row 1 is “pkg:/image/border-1.png” , row 2 is “pkg:/image/border-2.png” etc. I’ve noticed that the GridScreen doesn’t update after changing attributes. I saw something on here about quickly opening and closing OneLineDialog screen, but that didn’t work for me.

The alternative I guess could be to get a bytearray from BMP, alter the colors of it, then point to that tmp file. Is there a way to save ByteArrays to BMP files?

Thanks!

bump.
I’m assuming I’ll have to make a custom BMP Writer, which is okay, but just wanted to double check that I’m not overlooking something simple.

There’s no way that I’m aware of to accomplish what you’re after. You can’t change the GridScreen focus border after the screen is rendered, nor can you use a byte array to create a BMP. Even if you could do the latter, Roku doesn’t support BMPs.

“TheEndless” wrote:
There’s no way that I’m aware of to accomplish what you’re after. You can’t change the GridScreen focus border after the screen is rendered, nor can you use a byte array to create a BMP. Even if you could do the latter, Roku doesn’t support BMPs.

Actually, I figured out a fairly easy way to dynamically write the BMPs and they show up on roScreen. I didn’t test in something like roPosterScreen yet, but I’ll try after I finish the script.