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

SceneGraph - Draw children of elemen only in bounding rect

Hi,

I'm trying to show only part of image on poster.
I was thing about doing component that looks like this:


<Rectangle
width = "100"
height="100"
>
<Poster
width="200"
height="200"
uri="..."
/>
</Rectangle>


So my expectation is that the part of Poster that is not in boundict rect will not be drawn.
How can I achieve it?
Should I use 4 masks for each side with correct sizes or there is simpler way?
0 Kudos