It seems that these do not follow the same geometry.
I have an app the creates a picture with a complex image bounded by a “drawRoundRect” border
If I create a mask for that picture, using the same coordinates for a FillRoundRect the corners are totally different
Only solution seems to be when creating the mask layer… to do a DrawRoundRect, and a Floodfill