retina-display

Retina display image resolution using media queries

﹥>﹥吖頭↗ 提交于 2021-01-27 01:30:14
问题 What is the best way to use media queries to both detect a retina display and also specify max-width ? I can detect retina using @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and ( min--moz-device-pixel-ratio: 2), only screen and ( -o-min-device-pixel-ratio: 2/1), only screen and ( min-device-pixel-ratio: 2), only screen and ( min-resolution: 192dpi), only screen and ( min-resolution: 2dppx) { } How do I add it to the media queries? Do I write @media only screen and

background-size: cover looks pixelated on retina display

…衆ロ難τιáo~ 提交于 2020-02-28 06:24:27
问题 The website I'm working on can be seen here. If you check out the 'About' or 'Contact' section on iPad 3 or iPhone 4 the background looks all crazy pixelated. I've got the background-size set to cover so that when the user resizes it it scales appropriately, however on iPad or iPhone it looks terrible. Any help or tips on how to fix this for devices @media only screen and (min-device-pixel-ratio: 2) ? Thank you. 回答1: It's because you are using background-attachment:fixed - for whatever reason

iPad 3 Retina Display, @2x images, and apps already in the store

核能气质少年 提交于 2020-01-24 03:28:25
问题 So some iPad in the future is probably going to have Retina Display. And Apple is most likely going to stick to the @2x paradigm. I've been expecting this for awhile and so I already have @2x artwork for iPad in my apps; some are already in the app store. My question is this: Will I need to recompile and/or resubmit apps to use said artwork when this mythical iPad is released for it to take advantage of these files? Or is this something baked into the OS itself and it should just

Retina version of an image always used on non-retina display

耗尽温柔 提交于 2020-01-14 13:47:11
问题 In Cocoa application I've got 16x16 and 32x32 @2x version of an image: . When the image is displayed in NSImageView Mac OS X always picks higher-resolution version (i.e. downscales the @2x image on non-retina displays instead of using the 1:1 version). (IB on the left = good, running app on the right = downscaled mess) Of course I've got both images added to the project (as image.png and image@2x.png ). If I delete the @2x image from app bundle then OS X will display the lower-resolution

UIImageView rotates image with retina 4 iPhone simulator but not retina 3.5/regular simulator

社会主义新天地 提交于 2020-01-13 19:11:31
问题 The way UIImageView autorotates some images and not others (or autorotates images at all) completely baffles me and I can't find the settings to turn off this autorotate behavior. As a test I created a project using the iOS6 SDK targeted to iPhone 5 with the following steps: I took a photo using my iPhone 4's front facing camera with portrait orientation transferred it to my desktop using DropBox imported it into my project and specified it in StoryBoard as the source for a UIImageView. These

how to get retina-ready? [closed]

陌路散爱 提交于 2020-01-11 04:09:07
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . what do I have to do to make my web apps/sites retina-ready (on iPhone4 & iPad3) when it comes to videos images fonts colors ? I'm looking for a checklist here. 回答1: If you're on Rails 3.1+, you can use my clear_eyes gem to automatically handle retina images. Colors and fonts won

cocos2d my image retina doesn't resize [closed]

牧云@^-^@ 提交于 2020-01-07 09:22:44
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I have a problem in my application with cocos2d retina picture. When I run the application, the image retina is displayed, but it doesn't resize. Help me. 回答1: First check the your application enabled or not. if(

How to prevent iphone app from running on non-retina device?

为君一笑 提交于 2020-01-05 07:56:16
问题 I want my app to run on Retina devices only. How do i disable supporting non-Retina iPhone? Is that possible? 回答1: As the screen size is same for iPhone 3G, 3Gs, 4, 4S; You won't be able to find out which one is retina display among them (AFAIK). But, from iPhone4 the device is having front facing camera, so, You can use that. You can have your App require front-facing camera (Just an example; there are other hardwares too, newly introduced from iPhone4) device capability. These are specified

OpenGL ES 2.0 textures for retina display?

Deadly 提交于 2020-01-05 05:27:42
问题 I have got a GLKView, where I try to draw a couple of cubes and I create textures from a view and map them onto the cubes. However, when I start the app on a retina device, the textures are correctly sized but they look terrible. I have tried to set the contentScaleFactor of the GLKView to the scale of the main screen - to no avail. I have also tried to multiply the the buffers dimensions by the scale, which resulted in textures that looked crisp, but were only 1/4 of the original size...

How to enable retina mode on Mac OS X for Java apps

試著忘記壹切 提交于 2020-01-03 07:09:42
问题 I want to draw in full OSX Retina resolution in Java Swing application during debugging from IDE. How can I do this? When I run an app from an IDE, it looks blurry. 回答1: Fixed in jdk 7u40ea. Download from here https://jdk7.java.net/download.html 回答2: I had the same issue running Netbeans on a Retina MacBook Pro. Key is that JDK 7 does not support Retina and you have to downgrade to JDK 6. Description and solution here: https://netbeans.org/bugzilla/show_bug.cgi?id=215141#c66 回答3: If it is