Android.Graphics.Bitmap.Density Property

Syntax

[get: Android.Runtime.Register("getDensity", "()I", "GetGetDensityHandler")]
[set: Android.Runtime.Register("setDensity", "(I)V", "GetSetDensity_IHandler")]
public int Density { get; set; }

See Also

Bitmap.Density
Android.Util.DisplayMetrics.DensityDefault
Android.Util.DisplayMetrics.DensityDpi
Bitmap.DensityNone
Bitmap.Density
Android.Util.DisplayMetrics.DensityDefault
Android.Util.DisplayMetrics.DensityDpi
Bitmap.DensityNone

Value

Documentation for this section has not yet been entered.

Remarks

Get method documentation [Android Documentation]

Returns the density for this bitmap.

The default density is the same density as the current display, unless the current application does not support different screen densities in which case it is Android.Util.DisplayMetrics.DensityDefault. Note that compatibility mode is determined by the application that was initially loaded into a process -- applications that share the same process should all have the same compatibility, or ensure they explicitly set the density of their bitmaps appropriately.

Set method documentation [Android Documentation]

Specifies the density for this bitmap. When the bitmap is drawn to a Canvas that also has a density, it will be scaled appropriately.

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 4