{ "id": "77122", "key": "TIMOB-4524", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11362", "description": "Mobile 1.8.0 M09", "name": "Sprint 2011-30", "archived": true, "released": true, "releaseDate": "2011-08-01" } ], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2011-07-27T14:33:07.000+0000", "created": "2011-06-29T12:46:34.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "11367", "description": "", "name": "Release 1.7.1", "archived": true, "released": true, "releaseDate": "2011-06-21" } ], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-07T19:54:45.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "If you load an image and then transform it with a 3Dmatrix and then try to save the new image, the image is saved as the original. Using the exact same code but using 2Dmatrix, it works as expected.\r\n\r\n{code:title=app.js}\r\nvar win = Titanium.UI.createWindow({ \r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar view = Ti.UI.createView({width:'auto', height:'auto'});\r\n\r\nvar img = Titanium.UI.createImageView({\r\n height:43,\r\n width:98,\r\n top:10,\r\n image:'KS_nav_ui.png', //image file\r\n transform:Ti.UI.create3DMatrix().rotate(180, 0, 1, 0),\r\n //transform:Ti.UI.create2DMatrix().rotate(180, 0, 1, 0),\r\n preventDefaultImage: false\r\n});\r\n\r\nview.add(img);\r\n\r\nwin.add(view);\r\n\r\nvar save = Titanium.UI.createButton({\r\n title:'Save',\r\n width:120,\r\n height:40,\r\n bottom:20,\r\n right:0, \r\n});\r\n\r\nsave.addEventListener('click', function()\r\n{\r\n \r\n alert('File saved here: '+Titanium.Filesystem.applicationDataDirectory); \r\n // file system\r\n var photoname= new Date().getTime()+\".png\";\r\n var f = Titanium.Filesystem.getFile(Titanium.Filesystem.applicationDataDirectory,photoname);\r\n f.write(view.toImage());\r\n \r\n});\r\nwin.add(save); \r\nwin.open();\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS: 3DMatrix toImage does not capture transformation", "creator": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aleard", "key": "aleard", "displayName": "Alan Leard", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested in 1.7.1 on iOS 4.3.2", "comment": { "comments": [ { "id": "160799", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "At present there is no way for capturing 3D transformation in iPhone natively.\nThe method currently being used to capture the view is renderInContext and this will not recognize the 3D transformation applied to the image. the related documentation is : http://developer.apple.com/library/ios/documentation/GraphicsImaging/Reference/CALayer_class/Introduction/Introduction.html#//apple_ref/doc/uid/TP40004500-CH1-SW120\n\nThere seems to ba no other alternative to this and hence cannot be fixed.", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-27T14:33:07.000+0000", "updated": "2011-07-27T14:33:07.000+0000" }, { "id": "409604", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as it will not fix.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-07T19:54:45.000+0000", "updated": "2017-03-07T19:54:45.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }