CGImageRef myMaskedImage;
const float myMaskingColors[6] = {124, 255, 68, 222, 0, 165};
myColorMaskedImage = CGImageCreateWithMaskingColors (image,
myMaskingColors);
CGContextDrawImage (context, myContextRect, myColorMaskedImage);
CGImageRef myMaskedImage;
const float myMaskingColors[6] = { 0, 124, 0, 68, 0, 0 };
myColorMaskedImage = CGImageCreateWithMaskingColors (image,
myMaskingColors);
CGContextDrawImage (context, myContextRect, myColorMaskedImage);
CGImageRef myMaskedImage;
const float myMaskingColors[6] = { 0, 124, 0, 68, 0, 0 };
myColorMaskedImage = CGImageCreateWithMaskingColors (image,
myMaskingColors);
CGContextSetRGBFillColor (myContext, 0.6373,0.6373, 0, 1);
CGContextFillRect(context, rect);
CGContextDrawImage(context, rect, myColorMaskedImage);
CGImageCreateWithMask
const float myMaskingColors[6] = {124, 255, 68, 222, 0, 165};
myColorMaskedImage = CGImageCreateWithMaskingColors (image,
myMaskingColors);
CGContextDrawImage (context, myContextRect, myColorMaskedImage);
CGImageRef myMaskedImage;
const float myMaskingColors[6] = { 0, 124, 0, 68, 0, 0 };
myColorMaskedImage = CGImageCreateWithMaskingColors (image,
myMaskingColors);
CGContextDrawImage (context, myContextRect, myColorMaskedImage);
CGImageRef myMaskedImage;
const float myMaskingColors[6] = { 0, 124, 0, 68, 0, 0 };
myColorMaskedImage = CGImageCreateWithMaskingColors (image,
myMaskingColors);
CGContextSetRGBFillColor (myContext, 0.6373,0.6373, 0, 1);
CGContextFillRect(context, rect);
CGContextDrawImage(context, rect, myColorMaskedImage);
CGImageCreateWithMask
반응형
'iPhone' 카테고리의 다른 글
[xcode] 회전 후 버튼이 반응을 안할때 (0) | 2013.01.07 |
---|---|
아이폰 개발시 필요한 이미지 사이즈 (0) | 2012.11.22 |
아이폰5 IOS6.0 고화질 GUI PSD 배포 (0) | 2012.10.18 |
아이폰 규격 정보 (0) | 2012.03.26 |
iphone (0) | 2011.05.23 |