Reputation:
How can I mask an image, add an overlay and an underlay to the masked image with Core Graphics? (for instance: a document icon consists out of a mask png, a page curl png and a base with shadow) Can someone give me a best practice?
Upvotes: 3
Views: 2495
Reputation: 4004
CGContextDrawImage()
.CGContextSaveGState()
.CGContextClipToMask()
.CGContextRestoreGState()
.CGContextDrawImage()
.Upvotes: 3