dpi

Set ApplicationDPI in AS3 Mobile application

左心房为你撑大大i 提交于 2019-12-04 14:46:52
I developing an application in Flash Builder with AS3 only (no flex stuff). In flex it is possible to set the application's dpi by the following code: <s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" applicationDPI="320"> But I using only AS3. I have read that it is not possible to change the application's DPI in run-time (with AS3), but how can I set this in project settings, compiler settings or is there another way to do it? Also, what is the default application's DPI setting? Ask it here because can't find it on the net (only

Can I set the DPI resolution of my Java Swing application without changing the systems' DPI setting?

大兔子大兔子 提交于 2019-12-04 11:55:36
问题 I have a Java application using the Substance LookAndFeel with Windows as the the target platform and I want to increase the DPI setting of my application without changing the system setting. I want to do this because I don't want to force the user to restart Windows and because many Windows applications seem to have problems with very high DPI settings (> 120) PS: I'm aware that the Substance LaF allows to scale the font size at runtime, but that way only the height of my controls are scaled

Android: Huge difference in memory consumption when using drawable vs drawable-nodpi folders

和自甴很熟 提交于 2019-12-04 11:53:01
I have basic Android application created with Android Studio with single image loaded in ImageView like this: ImageView iv = (ImageView)findViewById(R.id.imageView); iv.setScaleType(ImageView.ScaleType.CENTER_CROP); iv.setImageResource(R.drawable.g01); Image size is 1280x853 pix , nothing huge. When I store the image in drawable folder runtime memory consumed by app is 24.35 MB vs 11.85 MB when image is stored in drawable-nodpi folder. Tested on xhdpi device with resolution of 1280x720 pix . In my real life app, difference is even greater 75 MB vs 25 MB. Why the difference? I thought that

When printing an image, what determines how large it will appear on a page?

ぐ巨炮叔叔 提交于 2019-12-04 10:22:36
Using Python's Imaging Library I want to create a PNG file. I would like it if when printing this image, without any scaling, it would always print at a known and consistent 'size' on the printed page. Is the resolution encoded in the image? If so, how do I specify it? And even if it is, does this have any relevance when it goes to the printer? As of PIL 1.1.5, there is a way to get the DPI: im = ... # get image into PIL image instance dpi = im.info["dpi"] # retrive the DPI print dpi # (x-res, y-res) im.info["dpi"] = new dpi # (x-res, y-res) im.save("PNG") # uses the new DPI I found a very

WPF Web Browser Control and DPI Scaling

三世轮回 提交于 2019-12-04 10:12:04
问题 I'm working with a WPF application that uses the Web Browser control and I'm having issues with High DPI scaling. It looks like the Web Browser control is not properly respecting the DPI settings of the system, while the rest of the WPF application is properly scaling the UI. This means that on higher scale levels the WPF interface gets larger while the Web browser content stays on the original, now smaller looking size. Here's an example of screen captures from a WPF app that uses two Web

Java / Swing how to deal with different screen DPI and density settings?

纵然是瞬间 提交于 2019-12-04 08:03:32
Hi everyone I've recently come across the problem that now days some monitors have different DPI settings, some monitors are much more dense such as, for example, Apple's Retina displays. How would one compensate for the different DPI settings and densities on various monitors with Java? Is it possible to scale the controls to be the same size on any monitor. I know when programming for Android all measurements are in "DP" and you can specify different images for three different display densities. Is there a way I could choose different images using Java / Swing for different display densities

Enhanced system DPI scaling with VS2017

给你一囗甜甜゛ 提交于 2019-12-04 07:09:08
I have a MFC app that has default MFC DPI support: it is high DPI aware, but not per-monitor DPI aware. Windows 10 version 1703 added support for System (enhanced) DPI scaling . I enabled this mode from Windows Explorer in the .exe compatibility settings, and it works for my app. Ideally, I'd make the app fully multi-monitor DPI compliant, but that's a fair amount of work. So instead, I want to tell the OS to use system (enhanced) DPI scaling for my app, if the OS supports it. Does the applications's manifest enable this, and if so, what needs to be added or changed? Additionally, how do I

How to configure an app to run correctly on a machine with a high DPI setting (e.g. 150%)?

微笑、不失礼 提交于 2019-12-04 06:30:02
问题 I've created a simple Winforms application in C#. When I run the application on a machine with high DPI settings (e.g. 150%), the application gets scaled up. So far so good! But instead of rendering the fonts with a higher font size, all texts are just scaled up, too. That of course leads to very blurry text (on all controls like buttons etc.). Shouldn't windows take care of rendering the texts correctly? For example my application's title bar is rendered crisp & clear. 回答1: Once you go past

Determine if an open WPF window is visible on any monitor

一世执手 提交于 2019-12-04 04:47:10
Is there a way to determine if an open WPF window is currently visible in any of the desktop's connected monitors? By visible I mean that the window's bounds rectangle intersects with the desktop rectangle of any of the monitors. I need this functionality to determine if a window needs to be repositioned because the monitor configuration (working areas bounds, monitor count) changed between restarts of my application (which saves window positions). I have come up with the code below and it seems to work, but it has several problems: I need to reference windows forms. I need the desktop's DPI

Problems getting WinForms to scale correctly with DPI

我只是一个虾纸丫 提交于 2019-12-04 03:15:24
I'm running into problems with getting a WinForms app to display correctly at high DPI settings. I've checked various web sites, and the WinForms all have the correct AutoScaleMode. I've tried setting this to both DPI and Font. However, the forms always get cut off near the bottom when using high DPI settings (e.g. 125%). I added some code to check, and if I set AutoScaleMode to DPI, when the form loads, I see that AutoScaleDimensions is 120,120 when the form loads, and CurrentAutoScaleDimensions is also 120,120. In the Form.designer.cs file, there is a line to set AutoScaleDimension to 96,96.