TypedValue.ComplexToDimension(Int32, DisplayMetrics) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts a complex data value holding a dimension to its final floating point value.
[Android.Runtime.Register("complexToDimension", "(ILandroid/util/DisplayMetrics;)F", "")]
public static float ComplexToDimension (int data, Android.Util.DisplayMetrics? metrics);
[<Android.Runtime.Register("complexToDimension", "(ILandroid/util/DisplayMetrics;)F", "")>]
static member ComplexToDimension : int * Android.Util.DisplayMetrics -> single
Parameters
- data
- Int32
A complex data value holding a unit, magnitude, and mantissa.
- metrics
- DisplayMetrics
Current display metrics to use in the conversion -- supplies display density and scaling information.
Returns
The complex floating point value multiplied by the appropriate metrics depending on its unit.
- Attributes
Remarks
Converts a complex data value holding a dimension to its final floating point value. The given <var>data</var> must be structured as a #TYPE_DIMENSION
.
Java documentation for android.util.TypedValue.complexToDimension(int, android.util.DisplayMetrics)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.