Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
Skrzypu
Level 7

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