divyavamsee / core-plot

Automatically exported from code.google.com/p/core-plot
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Retina: -(CPTNativeImage *)imageOfLayer disregarding scale #408

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use the imageOfLayer method of CPTLayer

On a Retina display I expect the rendering to be double the resolution, but its 
still rendering as if the display were low resolution. 

I tried this on the iPad Retina Simulator. Thats iOS 5.1 on OS X 10.7.3

Note: The actual rendering of Core Plot graphs are crisp and good, its only the 
imageOfLayer method that messes up.

Original issue reported on code.google.com by leberwur...@gmail.com on 8 Mar 2012 at 2:40

GoogleCodeExporter commented 9 years ago

Original comment by eskr...@mac.com on 12 Mar 2012 at 1:54

GoogleCodeExporter commented 9 years ago
It looks like it can be solved by changing the UIGraphicsBeginImageContext() to:

UIGraphicsBeginImageContextWithOptions(self.bounds.size, YES, 0.0);

Original comment by speci...@gmail.com on 15 Mar 2012 at 11:11

GoogleCodeExporter commented 9 years ago
For some reason this works. Not sure about the scale parameter though :o

Original comment by leberwur...@gmail.com on 15 Mar 2012 at 11:31

GoogleCodeExporter commented 9 years ago
This issue was closed by revision cbaaf5d8c7a5.

Original comment by eskr...@mac.com on 16 Mar 2012 at 2:07