retina-display

Texts are blurry when I migrated Android Studio to a higher resolution display

混江龙づ霸主 提交于 2019-12-06 10:26:19
问题 is there any way I can change the resolution of Android Studio? recently I migrate my Android Studio from rMBP 13' to rMBP 15' and the text is blurry. I tried to change its resolution hoping to fix it but found no way to do. do you guys met with this before? 回答1: There's a known issue with IntelliJ and Android Studio on MacOS that only Apple's JDK does proper subpixel antialiasing in its rendering. If you're using an Oracle JDK, then the rendering is not as good. Unfortunately, this means

How to activate @2x high res graphics for retina display?

自古美人都是妖i 提交于 2019-12-06 08:16:45
I have an old app and created @2x high res images for it. Now I've incorporated all these into my project, but when I build and run the app on the retina display test device I do not see the high res images. To be sure, I made some of them with strange colors so I know exactly if @2x is used or not. I also tried to clean my build and all targets first. It just seems the device is refusing to use high res images. Must I set a flag in the info.plist? it's a known issue with imageWithContentsOfFile: . In API docs, it says it should work, in reality it doesn't (didn't work in 4.0.x, not sure about

Detecting a retina display iPad with javascript

坚强是说给别人听的谎言 提交于 2019-12-06 05:26:14
问题 I'm having a problem detecting a retina iPad (and similar devices) using just screen.availWidth and window.devicePixelRatio . The problem is that iPhones and iPads give the number of dips for screen.availWidth whereas android devices seem to report the number of physical pixels so I can't reliably do screen.availWidth / window.devicePixelRatio to calculate if the screen is of a tablet size. Is there some other DOM property I can use to help me? edit - To sum up in a way which hopefully makes

Supporting graphics for both Retina and Non Retina display

巧了我就是萌 提交于 2019-12-06 05:17:41
I wanted to know that how should i proceed to support graphics properly on both retina and non-retina display ? I have a background image of dimension 640 * 920, i think it is for retina display. But i how would i go for supporting non retina display having dimension 320*480 ? How do you structure your graphics resources ? I have group called "Art" having all graphics (right now all for retina display dimension). Will ios automatically scale down my graphics to non - retina display ? I had one more query, like i am dragging one button to a view on some absolute position for retina display,

@2x images for iPhone OS 4.0

你说的曾经没有我的故事 提交于 2019-12-06 05:17:18
i have button image of size 560*66 can i put this button image iPhone 4.0 device?and also how will i give aspect ratio this button by using @2x. If you are making a universal app, for both iphone and ipad, then you need to have a naming scheme like this MyIcon.png //ipad MyIcon~iphone.png //low res iphone MyIcon@2x~iphone.png //high res iphone You don't need to have a pixel wise correlation between the ipad and the iphone pictures, but the low res and high res pictures need to be exactly 1:2, ie. if the low res is 50x50 then the high res should be 100x100. There is a bug in 4.0 where you have

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

巧了我就是萌 提交于 2019-12-06 04:40:36
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 are the layout settings for the imageView: Running it in the simulator for the retina3.5 and iPhone 5

Why is [[UIScale mainScreen] scale] 1 on an iPad 3 with Xcode 4.2?

别来无恙 提交于 2019-12-06 04:04:13
问题 When testing on my iPad 3, [[UIScreen mainScreen] scale] == 1.0 My understanding is that this should be 2.0. I am using the iOS 5.1 SDK with Xcode 4.2 on Snow Leopard, which I understand is not an "officially supported" configuration. However, I can't imagine why that would affect what is happening purely on the device. (I can imagine all sorts of ways it would break the simulator.) 回答1: Before XCode version 4.3, [UIScreen scale] will return 1.0 for an iPad 3. Updating to 4.3 will enable the

Is there a way to generate Retina graphs using 'matplotlib'?

我怕爱的太早我们不能终老 提交于 2019-12-06 03:19:35
Python's matplotlib does not generate Retina display quality LaTeX text by default. Are there settings or add-on package that generate Retina quality output? Are you using 'Agg' mode (standard) to create PNG Graphs? You can create SVG Graphs with Matplot lib which have way better quality using matplotlib.use('svg') tacaswell If you look into texmanager.py you see that it makes the png by a call to dvipng and the function that makes the system call to dvipng has an argument for dpi To get higher resolution TeX on a per-figure basis for existing figures plt.gcf().canvas.renderer.dpi = what_ever

Media queries on retina enabled devices

会有一股神秘感。 提交于 2019-12-06 02:53:40
Javascript tells me that my Galaxy S3 has a screen resolution of 720x1280 But the document is reported as 360x567. Is it possible to get the document to more accurately reflect the screen resolution? Initial-scale on the viewport perhaps? I don't seem to be able to manage it! To clarify, I know my device resolution is 720px wide in portrait mode, however when putting an element on a webpage the element fills the width of the page at 360px wide because the device is using 2 hardware pixels for each css pixel. Can I stop the device from doing this? First, why not to use that information most of

How to detect the Retina Display in MonoTouch

我的未来我决定 提交于 2019-12-06 00:43:51
问题 Just that question I want to detect the retina display in my MonoTouch app. Thanks. 回答1: There are already answers for ObjectiveC but here's a C# version: bool retina = (UIScreen.MainScreen.Scale > 1.0); That will work for the newer iPhone and iPod Touch and I suspect (will know in less than two weeks) for the new iPad. Jason's approach will work too and can be attractive if you need to know several hardware related features (e.g. retina + camera). 来源: https://stackoverflow.com/questions