dpi

Why are my dialog boxes too small on some (but not all) Windows7 computers?

十年热恋 提交于 2019-12-04 03:11:06
问题 I'm starting to test a Winforms (using VS2008) app on Windows 7, and am seeing a strange problem. It ran fine on the first couple of Win7 installations, but on the next two, many of my dialogs are too small, clipping the content by about 30%. The app was developed on WinXP, and have not seen this problem on any of the XP installations! Just starting to investigate the problem - don't have any details on differences between the systems that work and those that don't yet. Edit According to Kate

Change dpi of an image in OpenCV

佐手、 提交于 2019-12-04 01:28:48
问题 When I open an image in OpenCv (which may be of 300 dpi, 72 dpi etc.), the dpi of the image is automatically changed to 96 dpi. I want to variate this dpi. Please help. Thanks in advance... #include "stdafx.h" #include <cv.h> #include <cxcore.h> #include <highgui.h> #include <iostream> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { IplImage *img1=cvLoadImage("input.jpg"); cvSaveImage("output.jpg",img1); return(0); } 回答1: OpenCV does not support meta-data mangling like this. You

How to check PDF pages for resolution (DPI) of embedded images?

独自空忆成欢 提交于 2019-12-03 23:29:00
问题 Is there any free library, that can be used to get resolution of images in DPI contained by PDF file? I've tried the following code, using PDFSharp but the DPI it returns is not correct. For example it shows 96dpi while it should be 150dpi: using (PdfDocument pdf = PdfReader.Open(sourcePdf)) { for (int i = 0; i < pdf.Pages.Count; i++) { XGraphics xGraphics = XGraphics.FromPdfPage(pdf.Pages[i]); float dpi = xGraphics.Graphics.DpiX; } } 回答1: You can use a command line tool to get the info you

Can a PDF document contain images with different DPI?

杀马特。学长 韩版系。学妹 提交于 2019-12-03 19:32:55
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? 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 investigate for more details about the images used, without extracting them. With the next command I query

Delphi High DPI switch between own scaling and Windows scaling

淺唱寂寞╮ 提交于 2019-12-03 13:54:46
问题 Some of my customers want to be able to scale my application manually (when Windows dpi is set to 96), so I had to implement scaling. Unfortunately these customers cannot go with setting Windows DPI to an other value and let WIndows scale my app because some very important applications they use do not behave well at all on resolutions <> 96 DPI. I managed to make my Delphi 10.1 application scale quite well even on 200% but the higher the factor becomes the more some proportions become "not so

Problems wih minSdkVersion 1.5

那年仲夏 提交于 2019-12-03 13:33:27
问题 we have a problem related to the manifest file and the property "android:minSdkVersion". The issue is: If our platform is 2.0 and we use the property "android:minSdkVersion=3" (3 = sdk 1.5) the graphics get corrupted (In details, the application's resolution get reduced to a 2/3 part of the original size, this is, when the resolution should be 480x720, it becomes in a 320x480). This is happening on the Android emulator, and on the devices Droid/Milestone (Which are platforms 2.0). When we

Oracle数据库的坑

大兔子大兔子 提交于 2019-12-03 13:23:29
Oracle数据库爬过的坑 ORA-00918 未定义明确列 ORA-01861: 文字与格式字符串不匹配 DPI-1005 : unable to acquire Oracle environment handle DPI-1047 Cannot locate a 64-bit Oracle Client library \oci.dll is not the correct architecture https://blog.csdn.net/qq_34607565/article/details/90236776 来源: https://www.cnblogs.com/pupilheart/p/11796792.html

How to use a different coordinate system in WPF? (scaling only)

妖精的绣舞 提交于 2019-12-03 12:58:55
(Let me give you some context) I am currently designing an application that is supposed to generate a printable A4 page based on some data. Naturally, the device independent pixels of WPF (96 pixels/inch) are not a very natural unit of measurement in the paper world. Something like millimetres would be more appropriate. So I got my calculator out and arrived at a scaling factor of something around 3.779. It turns out that simply slapping everything that's supposed to go on the page in a ScaleTransform has one nasty side effect: Font sizes are scaled too (naturally). This, however, is not what

How to get screen DPI (linux,mac) programatically?

China☆狼群 提交于 2019-12-03 12:55:42
I need to know active screen DPI on Linux and Mac OS. I think on linux xlib might be useful, but I can't find a way how to get currect DPI. I want this information to get real screen size in inches. Thanks in advance! In X on Linux, call XOpenDisplay() to get the Display , then use DisplayWidthMM() and DisplayHeightMM() together with DisplayWidth() and DisplayHeight() to compute the DPI. On the Mac, there's almost certainly a more native API to use than X. Mac OS X does not run X Window by default, it has a native windowing environment. On a mac, use CGDisplayScreenSize to get the screen size

DPI in Retina iPad app design

大城市里の小女人 提交于 2019-12-03 11:24:31
问题 I don't know if this belongs in StackOverflow or some other SE site, but here goes. I have a PSD design I have an iOS development team turning into a Retina iPad app. However, this design is made in the default 72 dpi. The development team is now saying the design should be 264 dpi (same as a Retina iPad) -- as well as a 132 dpi version for the non-Retina edition. This confuses me, as I was under the impression that dpi just represents how many pixels go into an inch of output, and therefore