I know there are limitations for doing retina enabled images in the listbox as I read many previous posts. I have tried using my retinakit2 the way Sam had recommended and my images are not retina compared to the other retina images in my app.
Has anyone succeeded achieving retina images in the celltextpaint?
Looking at my app-under-development: I am definitely seeing Retina images using CellTextPaint by simply creating an image that’s 2x the size of the graphics to be drawn into. I’m not seeing it using CellBackgroundPaint but that may simply be a coding error on my end.
Declare Function BackingScaleFactor lib "AppKit" Selector "backingScaleFactor" (target As WindowPtr) As Double
and then setting “NSHighResolutionCapable” to True in the plist.
you then use the backingScaleFactor to make sure you are preparing your images at the 1x or 2x size as needed. You also have to make sure when you are drawing a picture, you don’t just use “graphics.drawPicture p,x,y” but rather the version with all the size parameters to stretch the 2x image down to the 1x canvas, e.g. “graphics.drawPicture p,x,y,w,h,0,0,p.width,p.height”
Yes, works fine for me as well. For a 16x16 image this is what it would look like. I hard-coded the numbers so that you can see it easily, but in my code it is calculated:
Everyone is talking images when it comes to retina displays. But what about the text? My text looks really blurry, even when I use retinizer or project10606 “Enable retina”. How to make use of the crisp fonts?