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?