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

Re: Toggle Element Visibility with roImageCanvas

"TheEndless" wrote:
"skitdev" wrote:
This is the part that I think I'm having trouble understanding. When you specify a layer as "source" what is using as the source?

Specifying a CompositionMode of "Source" means that that layer's pixels will replace any pixels behind it. When set to "Source-Over" the pixels will be alpha blended together. Using "Source" on a layer with transparent pixels (e.g., #00000000), those pixels will "punch" through any layers below it, all the way through to the video plane.

Gotcha. Thanks for that explanation.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.