[AC-3205] iOS : Masking an Image with Color
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | n/a |
Status | Resolved |
Resolution | Done |
Resolution Date | 2015-09-30T01:05:31.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | ios |
Reporter | Joseph Sachs |
Assignee | Shak Hossain |
Created | 2015-04-19T12:43:22.000+0000 |
Updated | 2016-03-08T07:57:36.000+0000 |
Description
Ability to *mask an Image with an array of Colors*, as seen here (attached an image as well to see the effect):
https://developer.apple.com/library/ios/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_images/dq_images.html#//apple_ref/doc/uid/TP30001066-CH212-CJBHCADE
CGImageRef myColorMaskedImage;
const CGFloat myMaskingColors[6] = {124, 255, 68, 222, 0, 165};
myColorMaskedImage = CGImageCreateWithMaskingColors (image,
myMaskingColors);
CGContextDrawImage (context, myContextRect, myColorMaskedImage);
The Current Titanium.UI.MaskedImage: http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.MaskedImage does not allow to mask an image with a color.
Attachments
File | Date | Size |
---|---|---|
chroma_key.gif | 2015-04-19T12:43:22.000+0000 | 10916 |
ImageMasking.zip | 2015-04-19T13:11:25.000+0000 | 10467987 |
Sample Code attached. Uses ImageMask with modes.
Thanks Joseph Sachs , We have tested this issue with TiSDK 3.5.2 GA and 4.0.0 Beta2 on iOS. Its a New Feature and working fine . . *modes*
*Log*