Skip to main content
-1 votes
1 answer
52 views

I'm trying to change the sketch's pixel density after its been first initialized in setup. Basically, user can interact with some UI inputs and it should change pixelDensity based on that. However I ...
IanBalls737's user avatar
2 votes
2 answers
2k views

On my Pixel 7 device, I want to know how many density-independent pixels (dp) I have. So, I use this formula: displayMetrics.widthPixels / displayMetrics.density However, I have an issue because ...
zeus's user avatar
  • 13.3k
0 votes
0 answers
121 views

Summary I'm attempting to use ImageMagick to produce copies of an image with a range different pixel densities to increase the user-experience of my front-end projects. Problem After running the ...
Jeremiah S.'s user avatar
1 vote
1 answer
1k views

I want to display a QR code in SwiftUI. The code is generated as a CGImage via CIImage. I don't want to scale it to the full size available because if the scaling factor isn't an integer there may be ...
realh's user avatar
  • 1,182
-1 votes
1 answer
1k views

I have a figma file , it's a mobile screen and all elements in figma are using pixels for their height and widths. However react native does not have pixels in the way typical web apps have and the ...
meliora3005's user avatar
-1 votes
3 answers
62 views

Problem: I have an overflow error when i use this widget (code below), How i solve the issue? You can see the error in the image below. enter image description here Container( height: 150, ...
DW・MOGAMBO's user avatar
5 votes
2 answers
6k views

I used picture element for responsive images in different sizes per viewport a long time. it worked fine, but now I am forced to switch over to responsive <img> with srcset and sizes and I try ...
Radon8472's user avatar
  • 5,067
0 votes
1 answer
95 views

I know it's been asked before but I cant find a solution to my problem Both devices have the same size 2650 * 1600 px One with size 10.5" has 287 ppi The other size 11" has 276 ppi As I ...
user3698465's user avatar
1 vote
1 answer
357 views

My CodenameOne app needs customized icons for some buttons. Images have to be used. The iOS version of my app was duly provided of those images in 1x 2x 3x formats. It seems that the multi-image ...
P5music's user avatar
  • 3,355
0 votes
1 answer
405 views

I am using the onCreateOptionsMenu method to create a toolbar with icons in the MainActivity of my app. I am testing on different screen sizes and pixel densities with Android Studio's emulator. The ...
gig6's user avatar
  • 337
3 votes
1 answer
1k views

I created layout-sw600dp/layout.xml and it was looking great on device A. But on device B this layout has melt and looks bad. I want to know how my layout looks in worst possible case scenario (...
StayCool's user avatar
  • 479
0 votes
1 answer
83 views

Basically I am changing layout ratios. I have to change current layout ratio to another ratio. There is a code snippet I am using in my application. import java.util.*; public class Big{ public static ...
Rupesh Kumar's user avatar
0 votes
1 answer
417 views

I am trying to render a view to a PrintedPdfDocument. The size of the page, as expected, is in units 1/72nd of an inch. So, for an A0 size page (width = 33.11 in), document.getPageWidth() returns 2384 ...
Vijayendra Vasu's user avatar
3 votes
0 answers
406 views

I have 27' 4k monitor and would like to present 10cm on the web page as it represented as real dimension in real world. I'm using Windows 10 with scaling set to 175%. Chrome console devicePixelRatio ...
broadband's user avatar
  • 3,548
1 vote
1 answer
139 views

If I specify srcset only in W units, does the browser consider high pixel density displays full resolution or its scaled down resolution? For example for this code... <img srcset=“image-xl.jpg ...
Jaume Mal's user avatar
  • 668

15 30 50 per page
1
2 3 4 5