1#ifndef __ImageMasking__ 2#define __ImageMasking__ 3 4#include <ApplicationServices/ApplicationServices.h> 5 6void doOneBitMaskImages(CGContextRef context); 7 8void doMaskImageWithMaskFromURL(CGContextRef context, 9 CFURLRef imageURL, size_t imagewidth, 10 size_t imageheight, size_t bitsPerComponent, 11 CFURLRef theMaskingImageURL, size_t maskwidth, 12 size_t maskheight); 13 14void doMaskImageWithColorFromURL(CGContextRef context, CFURLRef url, 15 size_t width, size_t height, 16 Boolean isColor); 17 18void exportImageWithMaskFromURLWithDestination(CGContextRef context, 19 CFURLRef imageURL, size_t imagewidth, 20 size_t imageheight, size_t bitsPerComponent, 21 CFURLRef theMaskingImageURL, size_t maskwidth, 22 size_t maskheight); 23 24void doMaskImageWithGrayImageFromURL(CGContextRef context, CFURLRef imageURL, size_t imagewidth, 25 size_t imageheight, size_t bitsPerComponent, 26 CFURLRef theMaskingImageURL, size_t maskwidth, 27 size_t maskheight); 28 29void drawWithClippingMask(CGContextRef context, 30 CFURLRef theMaskingImageURL, size_t maskwidth, 31 size_t maskheight); 32 33 34#endif // __ImageMasking__ 35