{ "id": "94586", "key": "TIMOB-9906", "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": "13503", "description": "Sprint 2012-14 Core", "name": "Sprint 2012-14 API", "archived": true, "released": true, "releaseDate": "2012-07-13" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-09T15:49:19.000+0000", "created": "2012-07-09T07:49:32.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "module_animation", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-08-27T10:47:15.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": "h2. Problem description\r\nWhen an image is rotated using the 2D or 3D Matrix transformation, its edges gets jaggy (very low quality).\r\n\r\nh2. Steps to reproduce\r\n1. Create an app with the following code (just set the 'url' var) and run it:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: '#333',\r\n\tnavBarHidden: true\r\n});\r\n\r\nvar url = IMAGE_URL_HERE;\r\n\r\nvar image = Ti.UI.createImageView({\r\n\theight: 400,\r\n\tpreventDefaultImage: true,\r\n\ttop: 0,\r\n\turl: url,\r\n\twidth: 400\r\n});\r\n\t\t\t\t\t\t\t\r\nvar a = Titanium.UI.createAnimation();\r\na.transform = Ti.UI.create2DMatrix().rotate(10);\r\n\r\nimage.animate(a);\r\n\r\nwin.add(image);\r\nwin.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "iOS: rotating an image with 2DMatrix or 3DMatrix causes jaggy edges", "creator": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "environment": "iOS 4.3", "comment": { "comments": [ { "id": "202235", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Can be done by setting UIViewEdgeAntialiasing property to true in the info.plist", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-07-09T15:41:20.000+0000", "updated": "2012-07-09T15:41:20.000+0000" }, { "id": "202236", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Add the following to the tiapp.xml\r\n\r\n \r\n \r\n UIViewEdgeAntialiasing\r\n \r\n \r\n \r\n\r\n\r\nThis will work for SDK 2.1.0 and above. For older SDK's you'll have to modify the info.plist generated and add the UIViewEdgeAntialiasing key yourself.\r\nPlease note that this is not recommended and there will be a performance hit on the app\r\n\r\nReference:\r\nhttp://developer.apple.com/library/ios/#documentation/general/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html\r\n\r\n", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-07-09T15:48:58.000+0000", "updated": "2012-07-09T15:48:58.000+0000" }, { "id": "214438", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fix with:\r\nTitanium Studio, build: 2.1.1.201207271312\r\nTitanium SDK: 2.2.0.v20120813184911\r\nDevices:\r\niPhone 4s 5.0.1\r\niPad1 5.1.1\r\nSimulator 5.1", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-14T14:39:07.000+0000", "updated": "2012-08-14T14:39:07.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }