Slice UIImage to fit within a polygon
===

I'm very new to iOS development.

I have an array of points, which form a closed polygon.

I want to create a new UIImage, from an existing UIImage, with only the area within the polygon visible. Rest of the area should become transparent.

How should I go about doing this? Is this possible with UIImage?