Questions tagged [dpi]

DPI stands for Dots Per Inch

Dots per inch (DPI, or dpi) is a measure of spatial printing or video dot density, in particular the number of individual dots that can be placed in a line within the span of 1 inch (2.54 cm).

1209 questions
-2
votes
1 answer

change a window's dpi awareness after creation

I'm working on a dll for game maker and I'm running into some issues. I seems I can't change the dpi settings on an already created window. Is this true or is there some workaround? I've been using SetProcessDpiAwareness and…
Tthecreator
  • 31
  • 1
  • 4
-2
votes
1 answer

How to increase jpeg image ppi or dpi in java?

I am creating a java program which I need to increase input JPEG image's PPI/DPI and save it as JPEG. Anyone can give me some hits on if this is workable?
Szewing
  • 27
  • 1
  • 3
-2
votes
2 answers

High DPI scaling, mouse hooks and WindowFromPoint

I have a process that sets a SetWindowsHookEx(WH_MOUSE_LL, , ,) right click hook. My process is set to DPI system aware on Window 10.0.10586 at 150% scaling on both monitors. This was set by calling…
birdwes
  • 127
  • 10
-2
votes
2 answers

Android, match the picture with dimension of the screen

I have a picture of fixed height (60 px by 40 px). I am trying to position the image by programmatically by adding margins to the image so that the image aligns to the center of the view How I can get it done correctly to work for all different…
-2
votes
3 answers

How to set a static dpi for android app

I want my app to showing views the same way on any device. I want to determine size in PIXELS. Can I do it? Can I just turn off that dpi resize feature, or set custom dpi for my app?
user1748526
  • 464
  • 5
  • 18
-3
votes
1 answer

Android DPI - a lie?

So I create sets of assets for an Android UI - 320 x 400 & 480 x 800 both of these at 160 and 240 dpi... After Drawing some of the assets as 9 patch a weird thing happened. The 9 patch graphics all 'came out' as 72 dpi but with different…
-3
votes
1 answer

Change DPI of Image object

I want to change the VerticalResolution and HorizontalResolution of a Bitmap to a fixed value of 300. I have a Windows service that takes some TIFF and does some barcode related operations. Beside that at the end I create a multipage TIFF from…
refex
  • 173
  • 6
  • 10
-3
votes
1 answer

How do I make imageview scale according to particular screen density and occupy whole screenspace?

I know it is possible to set values for image's height and width with density float values depending on the screen specs. DisplayMetrics metrics = new DisplayMetrics(); display.getMetrics(metrics); mScale = metrics.density; …
ERJAN
  • 23,696
  • 23
  • 72
  • 146
-4
votes
1 answer

How many dp's does my Galaxy SIII have?

I want to create graphics for Android apps but I can't find the screen dimensions in dp. For example, I can see that the Galaxy has 720 x 1280 pixels. I see that it is also 4.8 inches. Does this mean that the the dp is 720/4.8 = 150 dps? What would…
CodyBugstein
  • 21,984
  • 61
  • 207
  • 363
1 2 3
80
81