retina

SVG mouse cursor blurry on Retina display

為{幸葍}努か 提交于 2019-12-13 02:04:35
问题 I'm using a custom SVG cursor on my webpage and it appears to be blurry on Retina screens. Is this a common issue? 回答1: I've run into the same issue. My workaround involves using jQuery to follow the mouse position with an SVG div: $(document).mousemove(function(e){ $("#cursor").css({left:e.pageX, top:e.pageY}); but this has one issue of its own which I haven't resolved - it does not follow the mouse position as you scroll like the css option does jQuery: https://jsfiddle.net/jhhbrook

Slow laggy Javafx-Performance on Retina Display

巧了我就是萌 提交于 2019-12-12 03:28:13
问题 I have a simple method which writes pixels to a canvas' GrapicConte2D. A int[]-pixelarray is getting randomized every frame and updated with the PixelWriters setPixels()-Method. I have a Dual-Monitor-setup, a "regular" screen and a macbook pro retina. When dragging my application frame into my "regular" screen everything works very fine for me. But placing it on my MacBooks Retina Displays it gets really laggy. I have really no idea what went wrong. I was checking my code a few times, but it

Resize WebGL context in iOS

╄→гoц情女王★ 提交于 2019-12-12 02:55:44
问题 iOS WebGL has a bug, which can be reproduced with following HTML: <html> <head> <title>Resize WebGL</title> <meta name="viewport" content="width=device-width, user-scalable=no"> </head> <body> <input type="button" id="resizeButton" value="resize"><br> <canvas id="chart" style="width:100px; height:100px; border:1px solid #000;"> <script> var canvas = document.getElementById('chart'); var gl = null; function resetGL() { var devicePixelRatio = 2; // Warning: overrides window.devicePixelRatio var

my iOS app is in low resolution (status bar included)

陌路散爱 提交于 2019-12-11 23:56:36
问题 I use an iPhone 6 and I launch Skype and my app. My app launches in low resolution (seems like non-retina) and Skype launches in high resolution - status bar resolution stays the same as in home menu of iOS, while the status bar in my app seems "bigger". screenshot The one on the left (mine) is clearly lower resolution. What could be causing that ? 回答1: Make sure you have Launch Screen or launch Images at correct resolution for iPhone 6 or 6 Plus, otherwise your application will run in

Making Retina bullet points with images

*爱你&永不变心* 提交于 2019-12-11 11:36:14
问题 I currently have a customer image that I am using in stead of bullet points. I have that set up with the following CSS and it works fine: ul.benefits { list-style-image: url('/images/bullet-point-circle.png'); } The trouble is that the image that I am using is purposely double the size that it needs to be so that it can be Retina quality... But I cannot seem to find a way to specify the height of the image being used as the bullet points... Is there any other way to get the image to show as

How to optimize canvas circle for retina devices?

不打扰是莪最后的温柔 提交于 2019-12-11 10:13:47
问题 Please tell me how to make canvas look sharp for retina devices? I would be grateful if you show in my example - fiddle var canvas = document.getElementById('timer'); var context = canvas.getContext('2d'); var x = canvas.width / 2; var y = canvas.height / 2; var radius = 105; var endPercent = 100; var curPerc = 0; var counterClockwise = false; var circ = Math.PI * 2; var quart = Math.PI / 2; 来源: https://stackoverflow.com/questions/29027477/how-to-optimize-canvas-circle-for-retina-devices

How do I enable HiDPI (Retina) support in a Qt4 OpenGL application?

亡梦爱人 提交于 2019-12-10 19:29:10
问题 I am using a QGraphicsScene with a QGraphicsView, as described in this document; I intend to eventually overlay Qt widgets on top of my OpenGL rendered scene. When I launch a dummy application modeled after the tutorial above, the rendered view is heavily pixelated-- HiDPI isn't working at all. Per this document, I've manually added: <key>NSHighResolutionCapable</key> <string>True</string> to the application's Info.plist file, still with no effect. (It seems this is supposed to default to

7种方法解决移动端Retina屏幕1px边框问题

巧了我就是萌 提交于 2019-12-08 01:58:23
在之前的项目中,UI告诉我说我们移动项目中的边框全部都变粗了。原谅我的近视眼,为什么我看不出什么差距了,结果UI把他的设计稿跟我的屏幕截图跟我看,居然真的不一样!!! 没有办法,只有在后面的版本中去修改了,但是要改的话,需要知道是为什么。所以查了很多资料,终于搞懂了这个问题,并且总结了几种方法。 造成边框变粗的原因 其实这个原因很简单,因为css中的1px并不等于移动设备的1px,这些由于不同的手机有不同的像素密度。在window对象中有一个devicePixelRatio属性,他可以反应css中的像素与设备的像素比。 devicePixelRatio的官方的定义为:设备物理像素和设备独立像素的比例,也就是 devicePixelRatio = 物理像素 / 独立像素。 解决边框变粗的6种办法 1、0.5px边框 在2014年的 WWDC,“设计响应的Web体验” 一讲中,Ted O’Connor 讲到关于“retina hairlines”(retina 极细的线):在retina屏上仅仅显示1物理像素的边框,开发者应该如何处理呢。 他们曾介绍到 iOS 8 和 OS X Yosemite 即将支持 0.5px 的边框: 0.5px边框 额的神呐!so easy! 果真如此吗? 这样还不够(WWDC幻灯片通常是“唬人”的),但是相差不多。 问题是 retina

How To Save PNG file From NSImage (retina issues) The Right Way?

只愿长相守 提交于 2019-12-07 04:29:32
问题 I am trying to save each image in an array as a .PNG file (also as the right size, without scaling up because of retina mac dpi issues) and can't seem to find a solution. NONE of the solutions at How to save PNG file from NSImage (retina issues) seem to be working for me. I've tried each one and each of them would still save a 72x72 file as 144x144 in retina .etc. More specifically I am looking for an NSImage category (yes, I am working in the Mac environment) I am trying to have the user

Is there any media query for non-retina display?

霸气de小男生 提交于 2019-12-06 06:09:42
问题 According to an article on CSS-Tricks, the future proof media queries for retina display can be wrote as: @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) { /* Retina-specific stuff here */ } What if I want to write CSS codes for non-retina display? I