I need to mask a normal image (jpg or png) with a mask to create a number of smaller images for a jigsaw puzzle. I would like to be able to define a black/white masking image over the original image to create the jigsaw puzzle pieces.
So, I just need a function, not an entire application. The function should return an array of UIImages with the pieces.
The code is to be written for the iPhone in Objective-C and demonstrated in a runnable XCode project.