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?
Tags (1)
0 Kudos
Community is Temporarily in Read-Only Mode!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

Thanks for your patience — we’re excited to share what’s next!