retina-display

Can I dump my non-Retina Images for a iOS7 only app?

空扰寡人 提交于 2019-11-28 10:46:49
The next update of my iPhone app will be targeted for iOS7 only. A couple of questions? Does this mean I can delete all the non-retina images from my app? If I have only retina images left do I still need to mark them @2x? Does Apple keep older iOS versions of my app on the store so those running older versions of iOS who have bought or want to buy can still access it? Any help would be most appreciated. Yes you still need to have the @2x at the end. Yes you can drop all the non-retina images but could affect performance as even the newer devices will use some none-retina images but the main

Swing and bitmaps on retina displays

喜你入骨 提交于 2019-11-28 10:19:43
I've got a Java desktop app that works, amongst other, on OS X. Now the new MacBook Pro has a retina display and I'm concerned: how is it going to work regarding Swing? What about when a Java app uses both Swing components and some bitmap graphics (like custom icons / ImageIcon)? Shall all desktop Java apps be automatically resized (for example by quadrupling every pixel) or am I going to need to create two versions of my icons set (for example one with 24x24 icons and the other with 96x96 icons) and somehow determine that the app is running on a retina display? Use IconLoader library. It

Drawing image with CoreGraphics on Retina iPad is slow

微笑、不失礼 提交于 2019-11-28 09:16:41
In my iPad app, I am rendering to an offscreen bitmap, and then drawing the bitmap to the screen. (This is because I want to re-use existing bitmap rendering code.) On the iPad 2, this works like a charm, but on the new iPad with Retina display, drawing the bitmap is really slow, even though its resolution is still the same. To draw the bitmap, we use the regular Quartz 2D functions: CGImageCreate with a data provider created by CGDataProviderCreateWithData , 32-bit RGBA format with kCGImageAlphaNoneSkipLast . In the UIView that displays the bitmap, in drawRect: , we use CGContextDrawImage to

How to enable “use low resolution” on Retina display for an Application when shipping it?

孤街浪徒 提交于 2019-11-28 07:50:45
I have an application that breaks in HiDPI mode unless I chose "get Info" in finder and there tick the "open in low resolution" checkbox. Fixing the application is not an option as it was made using authoring software that is no longer really actively maintained by its vendor. Now here is the thing: When I take the application, put it on the desktop, zip it and afterwards set the "open in low resolution" checkbox to true, delete the application and unzip the original one the checkbox stays checked. So wherever OS X stores the property "open in low resolution" it's not along with the file. That

How to programmatically determine native pixel resolution of Retina MacBook Pro screen on OS X?

南笙酒味 提交于 2019-11-28 04:58:36
问题 Given a CGDirectDisplayID returned from CGError error = CGGetActiveDisplayList(8, directDisplayIDs, &displayCount); for the built-in screen on a Retina MacBook Pro, I would expect to fetch the native pixel dimensions using size_t pixelWidth = CGDisplayPixelsWide(directDisplayID); size_t pixelHeight = CGDisplayPixelsHigh(directDisplayID); However, these calls only return the dimensions of the currently selected mode. If I change screen resolution I get back different values. I was looking to

Serving high res images to retina display

做~自己de王妃 提交于 2019-11-28 04:46:49
how to detect, in a cross-browser compatible way , the pixel density of the device visiting a webpage so that one can either serve standard or highres images without forcing doubled images to any device? Is there any javascript library that automates this? Why setting for Retina iPhone 4s, iPhone 5, iPad3, iPad4, Macbook 15", Macbook 13" all use Retina display. Android also support high resolution display, as well as Windows 8(Lumia 920) as mentioned by @JamWaffles. Adding high resolution support is good for user experience but it definitely add load for developer, as well as bandwidth for

Not including non-retina display images in an iPhone project

╄→гoц情女王★ 提交于 2019-11-28 04:46:43
问题 I have an iPhone Xcode project that currently only contains images for retina display (twice the size as normal and with a @2x.png suffix). When I run the app on the iPhone Simulator (non retina) the images are still being displayed. Does this mean I don't need to worry about including two sets of images: retina and non-retina? This all seems a bit odd. I would assume that no images would appear on a non retina device if there are no non-@2x files included. Note: I have not tested my app on a

Retina iPad Specific CSS

三世轮回 提交于 2019-11-28 04:45:53
I'm designing a responsive site that will look different on mobile devices. I have three separate media queries in my css plus a query for retina display(s). /** 768PX IPAD PORTRAIT **/ @media screen and (max-width: 768px) {} /** 480PX IPHONE LANDSCAPE **/ @media screen and (max-width: 480px) {} /** 320PX PORTRAIT **/ @media screen and (max-width: 320px) {} /** RETINA IMAGES **/ @media all and (-webkit-min-device-pixel-ratio: 2) {} When iPad is in portrait mode, it will get the mobile version, but when it's in landscape mode it will get the regular version of the site. My problem is this, now

CoreGraphics for retina display

旧时模样 提交于 2019-11-28 03:50:05
I am using the following code to perform some manipulations on the image that I loaded, but I find that the display becomes blurry when it is on the retina display - (UIImage*)createImageSection:(UIImage*)image section:(CGRect)section { float originalWidth = image.size.width ; float originalHeight = image.size.height ; int w = originalWidth * section.size.width; int h = originalHeight * section.size.height; CGContextRef ctx = CGBitmapContextCreate(nil, w, h, 8, w * 8,CGImageGetColorSpace([image CGImage]), kCGImageAlphaPremultipliedLast); CGContextClearRect(ctx, CGRectMake(0, 0, originalWidth *

Do PNGs (or JPGs) have a DPI? Or is it irrelevant when building for retina?

廉价感情. 提交于 2019-11-28 02:55:12
问题 A simple question that I have been having great difficulty finding a definitive answer to: do PNG files have a DPI? Or perhaps more importantly, is it even relevant when building retina-enabled sites/apps? I've just received PSD assets from our designer for a retina iPad app that I must convert into HTML for display within the app. Typically, I receive such files as 2048x1536 @ 72 DPI -- double size but standard screen DPI. I then typically use CSS to tell the browser how to display it. But