New topic: 

My Retina Code Messes With My Windows Builds

<http://forums.realsoftware.com/viewtopic.php?t=47780>

         Page 1 of 1
   [ 4 posts ]                 Previous topic | Next topic          Author  
Message        StephenD          Post subject: My Retina Code Messes With My 
Windows BuildsPosted: Fri May 03, 2013 3:15 pm                         
Joined: Sat Sep 30, 2006 7:05 am
Posts: 31                So, I added support for retina on the Macbook Pro. 
Text looks great. 

I made icons double size and draw them at half size on canvas. This makes them 
look sharp on retina and fine on normal Macs with no conditional drawing 
needed.  I use code like this in the Canvas.paint event:
g.DrawPicture currentPic, 0, 0, currentPic.Width *.5, currentPic.Height *.5, 0, 
0, currentpic.Width, currentPic.Height

However, when running on Windows, my half size icons have unacceptable 
artifacts from the halving.  I assume the Windows graphics renderer is not as 
spiffy.

Do I need to create 2 versions of all my icons or is there some trick I've 
missed?   
                             Top                charonn0          Post subject: 
Re: My Retina Code Messes With My Windows BuildsPosted: Fri May 03, 2013 5:36 
pm                                 
Joined: Mon Apr 02, 2007 2:08 am
Posts: 1202
Location: San Francisco, CA, USA                Works/looks just fine for me on 
Windows 7. Maybe set App.UseGDIPlus to True.      
_________________
Boredom Software  
                             Top                StephenD          Post subject: 
Re: My Retina Code Messes With My Windows BuildsPosted: Sat May 04, 2013 3:52 
pm                         
Joined: Sat Sep 30, 2006 7:05 am
Posts: 31                Thanks. Alas, same dodgy result with  App.UseGDIPlus

Same for me for Win 7 and Win XP.

Making the image even pixel dimensions helps but some images, like those with 
repeating straight lines, just don't scale.   
                             Top                Bob Keeney          Post 
subject: Re: My Retina Code Messes With My Windows BuildsPosted: Sat May 04, 
2013 4:09 pm                                 
Joined: Fri Sep 30, 2005 11:48 am
Posts: 3524
Location: Lenexa, KS                StephenD wrote:Do I need to create 2 
versions of all my icons or is there some trick I've missed?

I believe this will be your best best.  I believe that even Apple recommends 
having 2 sizes of images, 1 for regular and 1 for Retina Display.  Scaling 
doesn't work in all cases.      
_________________
Bob K.

A blog about being a Real Studio developer at http://www.bkeeneybriefs.com  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 4 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to