Forum Discussion

buenafe's avatar
buenafe
Visitor
14 years ago

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.

2 Replies

  • destruk's avatar
    destruk
    Streaming Star
    roImageCanvas could do that for you if you put each on a separate layer.
  • jbrave's avatar
    jbrave
    Channel Surfer
    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