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: 
buenafe
Visitor

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 2
destruk
Binge Watcher

Re: Overlay two PNG files

roImageCanvas could do that for you if you put each on a separate layer.
0 Kudos
jbrave
Channel Surfer

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