All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scaffold.libs_as.flair.utils.displayMetrics.getDensityScale.as Maven / Gradle / Ivy

package flair.utils.displayMetrics
{
	/**
	 * Get density scale from default mdpi (160dp) bucket. This should be the same as using Starling.current.contentScaleFactor since
	 * starling stage is scale using this value.
	 */
	public function getDensityScale() : Number
	{
		return getDeviceDensity() / Density.DENSITY_DEFAULT;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy