dpi

How PixelsPerInch works in Delphi 10.3 Rio?

£可爱£侵袭症+ 提交于 2021-02-11 16:51:45
问题 I do not understand what is the purpose of PixelsPerInch property... It seems it is useless. If Scaled is checked, PixelsPerInch cannot be modified. If Scaled is unchecked and PixelsPerInch is changed, the form size an font is scaled to a fixed value, regardless of the value you entered in PixelsPerInch field. Of course, I checked the form size at runtime. 回答1: Scaled is True In the dfm file the PixelsPerInch property contains the screen DPI value used when the form was designed. This is

Setting DPI Awareness of a new Process to display tiff

隐身守侯 提交于 2021-02-11 14:37:48
问题 I want to display a tiff file using photoviewer. private void StartProcessWithoutShell(string filePath) { string path = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles); photoViewer.StartInfo = new ProcessStartInfo("rundll32.exe", String.Format("\"{0}{1}\", ImageView_Fullscreen {2}", Environment.Is64BitOperatingSystem ? path.Replace(" (x86)", "") : path, @"\Windows Photo Viewer\PhotoViewer.dll", filePath)); photoViewer.StartInfo.UseShellExecute = false; photoViewer.Start(); }

Setting DPI Awareness of a new Process to display tiff

回眸只為那壹抹淺笑 提交于 2021-02-11 14:35:36
问题 I want to display a tiff file using photoviewer. private void StartProcessWithoutShell(string filePath) { string path = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles); photoViewer.StartInfo = new ProcessStartInfo("rundll32.exe", String.Format("\"{0}{1}\", ImageView_Fullscreen {2}", Environment.Is64BitOperatingSystem ? path.Replace(" (x86)", "") : path, @"\Windows Photo Viewer\PhotoViewer.dll", filePath)); photoViewer.StartInfo.UseShellExecute = false; photoViewer.Start(); }

Controlling the image quality on the Java application side

给你一囗甜甜゛ 提交于 2021-02-11 07:01:52
问题 I posted a question here asking about what to do about a blurry picture in a java application. What i discovered is that my windows scaling was causing the blurriness. Now i have a greater issue. I want the quality of the image and application to be controlled via the application, without having to change any windows settings if at all possible. Instead of changing the scaling back to 100% there was another windows suggestion from here that said to change the compatibility settings of the

How to create PNG images with more than 72dpi using gnuplot?

回眸只為那壹抹淺笑 提交于 2021-02-09 10:57:53
问题 I'd like to create a PNG image in gnuplot and use it in MS-Word . However, if I use set terminal pngcairo enhanced font "Times New Roman,12.0" size 15cm,11cm the quality turns out to be poor. I read that the GNUPLOT uses only 72dpi . Is there a way to increase this number? 回答1: Simply specify the desired resolution in pixels rather than in centimeters: set terminal pngcairo enhanced font "Times New Roman,12.0" size 1500,1100 will generate an image that is 1500 pixels wide and 1100 pixels high

product catalog api fail

拥有回忆 提交于 2021-02-07 14:20:32
问题 need help. I tried to start with https://developers.facebook.com/docs/marketing-api/dynamic-product-ads/ads-management/v2.3 created account. Approved it by phone . created a business account, an ad account, an app, and so on. linked app to ad accont like this https://developers.facebook.com/docs/marketing-api/access#standard_accounts . Now i tried to create product catalog. i am getting same error all the time: The app is not whitelisted to use this API i tried to call api to cteate/list

HiDPI support in Java Swing for multiple look and feels

蓝咒 提交于 2021-02-06 12:59:08
问题 I'm looking to add Hi-DPI support to some Swing applications, but I have failed to find a solution sufficient to my needs. I need to support multiple look & feels, so the situation seems rather more complex than other posts I've found (which tend to suggest "adapt your UI sizes to match your font size"). Some experimentation has found the UIManager contains many metrics that can be tweaked to get you off to a good start in making an application Hi-DPI friendly. (The UIManager-Defaults utility

How do high-DPI devices like Retina displays and 1080p phones handle pixels in media queries?

会有一股神秘感。 提交于 2021-02-05 08:15:07
问题 For example, how many pixels does the iPhone with a Retina display appear to a media query? Is it 320 pixels or 640 pixels? If it's 640 pixels, how can a website deal with different device resolutions? Is there any way to use units that are the same regardless of a screen's resolution? 回答1: Retina devices like the iPhone and iPad usually use 2 device pixels = 1 CSS pixel. So a media query like this: @media all and (max-width: 320px) { } actually will target an iPhone (portrait), even though

Changing image DPI for usage with tesseract

折月煮酒 提交于 2021-01-27 05:28:34
问题 I am working on a project to recognize text in Business Cards and map them to appropriate fields.I am using opencv for image processing.I need to feed the preprocessed image to Tesseract-OCR engine for text recognition.This link states that images should have atleast a DPI of 300.My image pixel size is 2560x1536 with 72 DPI. How to increase the DPI to 300? It is also said that it is beneficial to resize image.How to resize my image optimally for good OCR results Tesseract works best on images

Changing image DPI for usage with tesseract

北城余情 提交于 2021-01-27 05:28:33
问题 I am working on a project to recognize text in Business Cards and map them to appropriate fields.I am using opencv for image processing.I need to feed the preprocessed image to Tesseract-OCR engine for text recognition.This link states that images should have atleast a DPI of 300.My image pixel size is 2560x1536 with 72 DPI. How to increase the DPI to 300? It is also said that it is beneficial to resize image.How to resize my image optimally for good OCR results Tesseract works best on images