incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lmnbeyond (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-1044) [iOS] Camera getPicture, with identical cameraOptions, but get different result when run on retina display and non-retina display
Date Thu, 12 Jul 2012 07:26:33 GMT

    [ 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

        

Mime
View raw message