Rectangle is not a clipping mask. If you want to get an image with rounded corners, you can use ImageFill brush to fill a shape, instead of putting an Image right inside of one.
Rectangle is not a clipping mask. If you want to get an image with rounded corners, you can use ImageFill brush to fill a shape, instead of putting an Image right inside of one.
Yes I know I can make an image with rounded corners, but I want text to clip also. The idea is to have scroll view within rectangle (or some other type of container) with rounder corners which should be clipped properly.
Pavel, you have correctly found that you can use Mask for what you wanted to achieve. However, I have to point out that what you’re doing is highly inefficient.
The use of DropShadow in particular has been discouraged for a long time now, since it’s very performance intensive, and a faster Shadow is the recommended approach. Of course, Shadow does not do “rounded corners” as DropShadow does, but that’s the whole point.
As for the shadow-challenge you have. If you don’t mind making a super slow app, I guess you could have 2 instances of that Mask, one just with the DropShadow applied, and another on top of it for the clipping. Not that I think you should do this.
And having clipping mask in another internal Rectangle
Another question: Is that possible to specify clipping mask using some curves? Or I’m limited to raster mask only? PNG clipping mask works great, I event tried mask with higher resolution but still I’d like to have better clipping quality on rounded edges.