ofImage with clipping path

Anyone know if you can either add a clipping path to ofImage, or use an ofImage to fill an ofPath instead of a solid color? I’m trying to mockup a simple interface that has 4 quadrants of a circle and you swipe to pick one, i just want the wedges to show an image. I can make the images square and load them, and the paths the proper shape but only solid, now how to combine them…

In ObjectiveC I would just load the image as a color and fill the shape with it, in Flash or .Net I would just set the path as a mask/clipping path on the image, but I’m kinda stumped as to what to do here.

Well there is this How To page:


And there is an example that demonstrates clipping.

There is more detailed information in this thread: