Unity UI : How to get masked image?

Hello,

I have used UI:Mask component for masking, its working great. Now i want to make new image from masked image, which shows me only the masked image. So how can i get it.

Thanks

if you know the position on screen you can read the screen and apply it to a texture:

        Texture2D tex = new Texture2D(128, 128);
        tex.ReadPixels(new Rect(startPos, endPos, width, height), 0, 0);
        tex.Apply();