ru.dgis.sdk.map.LogicalPixel | Android SDK | 2GIS Documentation
Android SDK

LogicalPixel

A pixel whose size is independent of screen density.

1 logical pixel equals 1/(base ppi) of an inch. The base PPI is device-specific and is calculated from the DevicePpi/DeviceDensity ratio. DevicePpi and DeviceDensity are in turn set with the OS via the map interface. For Android, LogicalPixel corresponds to dp, for iOS - to point.

LogicalPixel(value: Float = 0.0f)

A pixel whose size is independent of screen density.

1 logical pixel equals 1/(base ppi) of an inch. The base PPI is device-specific and is calculated from the DevicePpi/DeviceDensity ratio. DevicePpi and DeviceDensity are in turn set with the OS via the map interface. For Android, LogicalPixel corresponds to dp, for iOS - to point.

Parameters
value
Returns
Properties