{ "id": "64188", "key": "TIMOB-3556", "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": [], "resolution": { "id": "10100", "description": "This issue won't be actioned.", "name": "Won't Do" }, "resolutiondate": "2020-02-19T16:10:39.000+0000", "created": "2011-04-15T03:46:37.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "feature", "ios", "rplist" ], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-02-19T16:10:39.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": "Let users apply a transform to the camera preview AFTER it has been shown (i.e. expose [picker setCameraViewTransform:[transform matrix]]). This will open up some interesting use cases.\r\n\r\nh3. Sample Code\r\n\r\nTested on an iPad 2, the following could be dropped in MediaModule.m:\r\n\r\n{code}\r\n-(void)applyTransform:(id)args\r\n{\r\n ENSURE_UI_THREAD(applyTransform, args);\r\n ENSURE_SINGLE_ARG_OR_NIL(args, NSDictionary);\r\n if (args!=nil)\r\n {\r\n // allow a transform on the preview image\r\n id transform = [args objectForKey:@\"transform\"];\r\n if (transform != nil)\r\n {\r\n [picker setCameraViewTransform:[transform matrix]];\r\n }\r\n else\r\n {\r\n // revert to use our own fullscreen transform if the developer didn't supply one\r\n picker.cameraViewTransform = CGAffineTransformScale(picker.cameraViewTransform, CAMERA_TRANSFORM_X, CAMERA_TRANSFORM_Y);\r\n }\r\n }\r\n}\r\n{code}\r\n\r\nAnd it could be consumed by this trivial app.js:\r\n\r\n{code}\r\nTi.UI.createWindow({ backgroundColor: '#fff' }).open();\r\nTi.Media.showCamera();\r\nTi.Media.applyTransform({ transform: Ti.UI.create2DMatrix().scale(5) });\r\n{code}\r\n\r\nh3. Associated Helpdesk Ticket\r\n\r\nhttp://support.appcelerator.com/tickets/UYQ-99734-671", "attachment": [], "flagged": false, "summary": "iOS: Transform Camera", "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": "168171", "author": { "name": "nicole", "key": "nicole", "displayName": "Nicole", "active": true, "timeZone": "America/Havana" }, "body": "I'd like this feature too. It can be used to create apps like 'magnifying glass'. Hope it would be included in the next release. Thanks.", "updateAuthor": { "name": "nicole", "key": "nicole", "displayName": "Nicole", "active": true, "timeZone": "America/Havana" }, "created": "2011-10-06T14:48:27.000+0000", "updated": "2011-10-06T14:48:27.000+0000" }, { "id": "281817", "author": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "body": "For 2 of my apps, this feature is required. For now I adjust it with 2d scale but it is not good, the scale is variable on different devices with different version of iOS. We need this fix.", "updateAuthor": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-11-29T09:39:25.000+0000", "updated": "2013-11-29T09:39:25.000+0000" }, { "id": "282065", "author": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Will this code change on MediaModule.m solve the problem? Usually I get problems on iPhone. Camera preview will not fill the fullscreen. Will that be solved?", "updateAuthor": { "name": "mano_mykingdom", "key": "mano_mykingdom", "displayName": "Manojkumar Murugesan", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-12-03T04:51:19.000+0000", "updated": "2013-12-03T04:51:19.000+0000" }, { "id": "454339", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "closing for inactivity. ", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2020-02-19T16:10:39.000+0000", "updated": "2020-02-19T16:10:39.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }