You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "lmnbeyond (JIRA)" <ji...@apache.org> on 2012/07/12 09:26:33 UTC
[jira] [Commented] (CB-1044) [iOS] Camera getPicture, with
identical cameraOptions, but get different result when run on retina
display and non-retina display
[ https://issues.apache.org/jira/browse/CB-1044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13412580#comment-13412580 ]
lmnbeyond commented on CB-1044:
-------------------------------
Actually, I'm wondering why not using the following code in CDVCamera.m:
if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)])
{
UIGraphicsBeginImageContextWithOptions(size, NO, [UIScreen mainScreen].scale);
}
else UIGraphicsBeginImageContext(size);
instead of using UIGraphicsBeginImageContext(size);
Please refer to CDVCamera.m line 415
> [iOS] Camera getPicture, with identical cameraOptions, but get different result when run on retina display and non-retina display
> ----------------------------------------------------------------------------------------------------------------------------------
>
> Key: CB-1044
> URL: https://issues.apache.org/jira/browse/CB-1044
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 1.9.0
> Reporter: lmnbeyond
> Assignee: Shazron Abdullah
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> Call camera.getPicture and identify cameraOptions's targetWidth:100, targetHeight:100.
> Test it on retina display and non-retina display, should get same result?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira