Pixels per Centimeter - Dynamically accessing that for various devices

Hi folks, I doubt this can be done but I'm trying anyway. Is there a way to read a devices resolution and known how many pixels are crammed in a cm? I find myself needing to know the swipe distances and needing to calculate them but pixel density varies device to device and I was wondering if there is a way to calculate using device specs GS has access to? @Armelline has an amazing swipe factory but by my understanding the values for the devices shown were preconfigured rather than calculated with GS. Any ideas folks?

Comments

Sign In or Register to comment.