{ "id": "76598", "key": "TIMOB-4466", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": "11360", "description": "Mobile 1.8.0 M07", "name": "Sprint 2011-28", "archived": true, "released": true, "releaseDate": "2011-07-18" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-07-15T16:38:47.000+0000", "created": "2011-06-21T06:32:47.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_filesystem", "qe-testadded" ], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-11-15T15:57:40.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": "h1. Feature\r\nSupport high density screenshots for iOS.\r\n\r\nh2. Sample Code\r\nDrop the following in an app.js, and fire up the iPhone 4 simulator. It will take a screenshot of the blue window, then log and alert the path to the image. Go to it in Finder and see what size it is. The goal of this ticket is to make it the full resolution (640x960, instead of 320x480).\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({ backgroundColor: 'blue' });\r\nwin.open();\r\nTi.Media.takeScreenshot(function(event) {\r\n var shotFile = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'screenshot.png');\r\n if (shotFile.exists()) {\r\n shotFile.deleteFile();\r\n }\r\n shotFile.write(event.media);\r\n Ti.API.info(shotFile.nativePath);\r\n alert(shotFile.nativePath);\r\n});\r\n{code}\r\n\r\nh2. Pull Request\r\nhttps://github.com/appcelerator/titanium_mobile/pull/149", "attachment": [], "flagged": false, "summary": "iOS: High Density Screenshots", "creator": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [ { "id": "157269", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "I'll send a pull request once my existing one is accepted.\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/136\r\n\r\nThe commit is available here, in the meantime:\r\n\r\nhttps://github.com/dawsontoth/titanium_mobile/commit/7a0efacb2ac85616ad417f093ec2aeeb8c3050b4", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-06-21T06:55:43.000+0000", "updated": "2011-06-21T06:55:43.000+0000" }, { "id": "157647", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "Fixed my branches; pull request is available here:\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/149", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-06-23T09:14:52.000+0000", "updated": "2011-06-23T09:14:52.000+0000" }, { "id": "157698", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Submitted pull request rejected by QE because it did not appear to function properly", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-23T14:54:24.000+0000", "updated": "2011-06-23T14:54:24.000+0000" }, { "id": "157720", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "I should have been more explicit; did they use the iPhone 4 Retina simulator?", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-06-23T21:31:27.000+0000", "updated": "2011-06-23T21:31:27.000+0000" }, { "id": "158544", "author": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "body": "The test must be done with the iPhone (Retina) simulator or an actual iPhone 4 device. I just tested my code again and the 640x960 screenshot is being saved when the proper simulator is used.", "updateAuthor": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "created": "2011-07-05T13:23:13.000+0000", "updated": "2011-07-05T13:23:13.000+0000" }, { "id": "159713", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Code reviewed. Pull request processed", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-15T16:38:47.000+0000", "updated": "2011-07-15T16:38:47.000+0000" }, { "id": "172832", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.8.0.1.v20111114102656\r\non iPhone Retina Simulator 5.0", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-15T15:57:40.000+0000", "updated": "2011-11-15T15:57:40.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }