{ "id": "147070", "key": "AC-3205", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "10000", "description": "", "name": "Done" }, "resolutiondate": "2015-09-30T01:05:31.000+0000", "created": "2015-04-19T12:43:22.000+0000", "labels": [ "ios" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:57:36.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Ability to *mask an Image with an array of Colors*, as seen here (attached an image as well to see the effect): \r\n\r\nhttps://developer.apple.com/library/ios/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_images/dq_images.html#//apple_ref/doc/uid/TP30001066-CH212-CJBHCADE\r\n{code}\r\nCGImageRef myColorMaskedImage;\r\nconst CGFloat myMaskingColors[6] = {124, 255, 68, 222, 0, 165};\r\nmyColorMaskedImage = CGImageCreateWithMaskingColors (image,\r\n myMaskingColors);\r\nCGContextDrawImage (context, myContextRect, myColorMaskedImage);\r\n{code}\r\n\r\nThe Current Titanium.UI.MaskedImage: http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.MaskedImage does not allow to mask an image with a color.", "attachment": [ { "id": "55002", "filename": "chroma_key.gif", "author": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "created": "2015-04-19T12:43:22.000+0000", "size": 10916, "mimeType": "image/gif" }, { "id": "55003", "filename": "ImageMasking.zip", "author": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "created": "2015-04-19T13:11:25.000+0000", "size": 10467987, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS : Masking an Image with Color", "creator": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "subtasks": [], "reporter": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "environment": "iOS", "comment": { "comments": [ { "id": "350053", "author": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "body": "Sample Code attached. Uses ImageMask with modes.", "updateAuthor": { "name": "underlabs", "key": "underlabs", "displayName": "Joseph Sachs", "active": true, "timeZone": "America/Montreal" }, "created": "2015-04-19T13:11:25.000+0000", "updated": "2015-04-19T13:11:47.000+0000" }, { "id": "350073", "author": { "name": "hmrida", "key": "hmrida", "displayName": "Harish Mridha", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Thanks Joseph Sachs , \r\n\r\nWe have tested this issue with TiSDK 3.5.2 GA and 4.0.0 Beta2 on iOS. Its a New Feature and working fine . \r\n\r\n.\r\n\r\n*modes*\r\n{code}\r\n var modes = [\r\n Ti.UI.iOS.BLEND_MODE_CLEAR,\r\n Ti.UI.iOS.BLEND_MODE_COLOR,\r\n Ti.UI.iOS.BLEND_MODE_COLOR_BURN,\r\n Ti.UI.iOS.BLEND_MODE_COLOR_DODGE,\r\n Ti.UI.iOS.BLEND_MODE_COPY,\r\n Ti.UI.iOS.BLEND_MODE_DARKEN,\r\n Ti.UI.iOS.BLEND_MODE_DESTINATION_ATOP,\r\n Ti.UI.iOS.BLEND_MODE_DESTINATION_IN,\r\n Ti.UI.iOS.BLEND_MODE_DESTINATION_OUT,\r\n Ti.UI.iOS.BLEND_MODE_DESTINATION_OVER,\r\n Ti.UI.iOS.BLEND_MODE_DIFFERENCE,\r\n Ti.UI.iOS.BLEND_MODE_EXCLUSION,\r\n Ti.UI.iOS.BLEND_MODE_HARD_LIGHT,\r\n Ti.UI.iOS.BLEND_MODE_HUE,\r\n Ti.UI.iOS.BLEND_MODE_LIGHTEN,\r\n Ti.UI.iOS.BLEND_MODE_LUMINOSITY, // Grayscale\r\n Ti.UI.iOS.BLEND_MODE_MULTIPLY,\r\n Ti.UI.iOS.BLEND_MODE_NORMAL,\r\n Ti.UI.iOS.BLEND_MODE_OVERLAY,\r\n Ti.UI.iOS.BLEND_MODE_PLUS_DARKER,\r\n Ti.UI.iOS.BLEND_MODE_PLUS_LIGHTER,\r\n Ti.UI.iOS.BLEND_MODE_SATURATION,\r\n Ti.UI.iOS.BLEND_MODE_SCREEN,\r\n Ti.UI.iOS.BLEND_MODE_SOFT_LIGHT,\r\n Ti.UI.iOS.BLEND_MODE_SOURCE_ATOP, // Masks underneath \r\n Ti.UI.iOS.BLEND_MODE_SOURCE_IN,\r\n Ti.UI.iOS.BLEND_MODE_SOURCE_OUT,\r\n Ti.UI.iOS.BLEND_MODE_XOR\r\n ];\r\n{code}\r\n*Log*\r\n{code}\r\n\r\n[INFO] : Application started\r\n[INFO] : ImageMasking/1.0 (3.5.1.96875c9)\r\n[INFO] : 0\r\n[INFO] : Mode: 16 - idx in Array: 0\r\n[INFO] : Mode: 14 - idx in Array: 1\r\n[INFO] : Mode: 7 - idx in Array: 2\r\n[INFO] : Mode: 6 - idx in Array: 3\r\n[INFO] : Mode: 17 - idx in Array: 4\r\n[INFO] : Mode: 4 - idx in Array: 5\r\n[INFO] : Mode: 24 - idx in Array: 6\r\n[INFO] : Mode: 22 - idx in Array: 7\r\n[INFO] : Mode: 23 - idx in Array: 8\r\n[INFO] : Mode: 21 - idx in Array: 9\r\n[INFO] : Mode: 10 - idx in Array: 10\r\n[INFO] : Mode: 11 - idx in Array: 11\r\n[INFO] : Mode: 9 - idx in Array: 12\r\n[INFO] : Mode: 12 - idx in Array: 13\r\n[INFO] : Mode: 5 - idx in Array: 14\r\n[INFO] : Mode: 15 - idx in Array: 15\r\n[INFO] : Mode: 1 - idx in Array: 16\r\n[INFO] : Mode: 0 - idx in Array: 17\r\n[INFO] : Mode: 3 - idx in Array: 18\r\n[INFO] : Mode: 26 - idx in Array: 19\r\n[INFO] : Mode: 27 - idx in Array: 20\r\n[INFO] : Mode: 13 - idx in Array: 21\r\n\r\n{code}\r\n", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-04-20T05:49:54.000+0000", "updated": "2015-09-30T01:04:48.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }