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: 
Highlighted
Level 7

Overlay two PNG files

If there was a Developer forum for newbies, I would post this question there. I've been playing with the sample examples and ready to dive a little bit deeper.

Q. Is it possible for me to overlay two PNG images (one PNG files has some transparency)?

I know that I should just experiment and learn, but I want to make sure it's feasible before investing time going down this path.

Thanks in advance.
----------------------------------------------------------------------------------
current: two roku XDS 2xs, dtvpal, boxeebox, kylo.tv,
radar: wdlxtv.com
0 Kudos
2 Replies
Highlighted
Level 10

Re: Overlay two PNG files

roImageCanvas could do that for you if you put each on a separate layer.
0 Kudos
Highlighted
Level 7

Re: Overlay two PNG files

You can even do it on the same layer:

canv.setlayer(2,[imageone,imagetwo])

if one of your png's has transparency. You might have to switch up the order of the images, so the transparent one draws after the non-transparent.

- Joel
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
0 Kudos