dpi

I cannot open visual studio 2017 ProcessDPIawareness error

落花浮王杯 提交于 2019-12-23 04:43:21
问题 I try to open visual studio 2017 and it gives me this error : Microsoft Visual Studio Impossible de charger le type 'ProcessDpiAwareness' à partir de l'assembly 'WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. OK I don't get it, I try to uninstall and reinstall and it doesn't want to install anymore, I did many research and I have yet to find a solution. Thank you for the help 回答1: I think this is yet another problem with .Net 4.7 update on Windows 7/8/8.1

Android: Purpose of using images with different pixel density?

天涯浪子 提交于 2019-12-23 02:54:28
问题 I know using images with different DPI is a fairly common practice in Android. But I don't really see the purpose of it, why can't we just use a ultra huge image and then scale it in the program? I know we probably need to do extra calculation if we don't images in different DPI, but besides that, is there's any other reason? 回答1: Tim and a.d. have the correct reasoning for you. Here's a visual example if you'd like to see a comparison between something rescaled or drawn at the correct size.

iTextSharp get PDF DPI

此生再无相见时 提交于 2019-12-22 18:57:10
问题 How can I get the DPI of the PDF that I am reading from my hard drive into iTextSharp? 回答1: PDF's do not necessarily use DPI in their definitions. PDF's allow the document creator to define their own user coordinate space which may or may not map to anything similar to Dots Per Inch. 回答2: Check this How to calculate the correct image size in out pdf using itextsharp ? PDF UserUnit shall give the size of default user space units, in multiples of 1 ⁄ 72 inch. ISO-32000-1 (section 8.3.2.3) tells

Win32 app not affected by dpi setting when hosted by WPF app

删除回忆录丶 提交于 2019-12-22 10:38:10
问题 I'm launching an old win32 app as a child in a wpf app. The problem is that the win32 app ignores the dpi setting when run as a child of the wpf app. The dpi setting has the desired effect on the win32 app when launched in its own window. I've assumed that the wpf app is "dpi aware" and the win32 app becomes so when childed. I would like to get the win32 child app to be sized according to the dpi setting like it is when launched alone. 来源: https://stackoverflow.com/questions/26473511/win32

c# Pinvoke for GetWindowDpiAwarenessContext

做~自己de王妃 提交于 2019-12-22 10:26:17
问题 I am trying to implement GetWindowDpiAwarenessContext in a C# application with no success. The relevent header files are: windef.h DECLARE_HANDLE(DPI_AWARENESS_CONTEXT); typedef enum DPI_AWARENESS { DPI_AWARENESS_INVALID = -1, DPI_AWARENESS_UNAWARE = 0, DPI_AWARENESS_SYSTEM_AWARE = 1, DPI_AWARENESS_PER_MONITOR_AWARE = 2 } DPI_AWARENESS; #define DPI_AWARENESS_CONTEXT_UNAWARE ((DPI_AWARENESS_CONTEXT)-1) #define DPI_AWARENESS_CONTEXT_SYSTEM_AWARE ((DPI_AWARENESS_CONTEXT)-2) #define DPI_AWARENESS

QT High DPI Support on Windows

天大地大妈咪最大 提交于 2019-12-22 07:07:15
问题 According to documentation here http://doc.qt.io/qt-5/highdpi.html QT 5.4+ introduces high DPI support. However, either I’m missing something fundamental or the current support is still in very early stages. I’m writing a brand new application so I have a chance to do it right from the ground up. I understand that I would have to use layouts instead of fixed positioning etc, but there always going to be cases in which I would have to specify, for example a minimum/maximum size of a control. I

How to detect font scaling mode used?

徘徊边缘 提交于 2019-12-21 19:54:54
问题 In the Windows 7 "Custom DPI Setting" window, there is a setting called "Use Windows XP style DPI scaling". Does anyone know how to detect if this setting is in use? 回答1: Not sure if either of these will give you what you want but might be useful: IsProcessDPIAware - Determines whether the current process is dots per inch (dpi) aware such that it adjusts the sizes of UI elements to compensate for the dpi setting. Writing High-DPI Win32 Applications - Using the code in the Getting System

Can a PDF document contain images with different DPI?

我的未来我决定 提交于 2019-12-21 05:37:10
问题 the question says it all. Are there PDF documents that contain images with different dpi (Dot Per Inch) ? Or is it assumed that if I know the dpi of one image, I know it of the whole document? 回答1: I upvoted @ypnos' answer, which is completely correct. But I'd like to complement it by showing a very recent, new feature of the pdfimages utility. pdfimages was previously known to be able to extract images from PDF files (and that was its only useful purpose). However, now you can also use it to

Scaling a Phonegap app for different Android screen sizes/densities?

匆匆过客 提交于 2019-12-20 10:28:26
问题 I have a Phonegap app designed to run on Android phones and tablets. The scale of text and images looks fine on a phone, but too small on a 7” tablet. Is there a way to set the scale for different screen sizes/densities that works for a Phonegap-based app? For a native Android app, multiple screen layouts (as mentioned in the android docs) would be a solution, but can this be used for a Phonegap-based app? I could use CSS media queries to set font sizes based on screen size, but I want to

How to define DPi for a new JPG image?

↘锁芯ラ 提交于 2019-12-20 06:47:35
问题 I'm going to create a new JPG image with PHP. How can I set the DBi value of a new JPG image. Dirk 回答1: JPG is a Pixel format that doesn't really know physical dimensions like Dots Per Inch. All you can do is write a dpi value into the file's Metadata as assistance for further processing, but it's just a recommendation and it can't be done using the GD library. You would have to use an third-party library for this. See e.g. the second answer to this question: How do I add exif data to an