Re: Working with CGImage and Retina Display

2010-12-15 Thread Gustavo Pizano
Steve hello thanks for the reply.. it happens that I did a dirty work around here. at application launch I load the CGImageRef map depending on the device scale factor, so if it is 2.0 i load a @2x map otherwise the SD map. then when initializing the view which contains the and draw a portion

Re: Working with CGImage and Retina Display

2010-12-15 Thread Steve Christensen
I believe the issue is that CGImage just refers to an image with an effective scale factor of 1.0, no matter the device scale. It sounds like you need to somehow keep track of the image scale you're using so that you're always drawing at the correct size. One way would be to use +[UIImage imageN

Working with CGImage and Retina Display

2010-12-13 Thread Gustavo Pizano
Hello all. Im creating some views which draws a CGImage that is obtained from a Atlas Map, (Big map containing all the images). for iPHone 4 I have this map 2 times bigger than the normal one, so if I have a 2.0 scale on screen I load that one. What Im getting is that on iPhone 4 Im seeing all