Android.Graphics.Drawables.BitmapDrawable Members

The members of Android.Graphics.Drawables.BitmapDrawable are listed below.

See Also: Inherited members from Android.Graphics.Drawables.Drawable

Public Constructors

Create an empty drawable, not dealing with density.
Create an empty drawable, setting initial target density based on the display metrics of the resources.
Create drawable from a bitmap, not dealing with density.
Create a drawable by decoding a bitmap from the given input stream.
Create a drawable by opening a given file path and decoding the bitmap.
Create drawable from a bitmap, setting initial target density based on the display metrics of the resources.
Create a drawable by decoding a bitmap from the given input stream.
Create a drawable by opening a given file path and decoding the bitmap.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
BitmapAndroid.Graphics.Bitmap. Returns the bitmap used by this drawable to render.
GravityAndroid.Views.GravityFlags. Get the gravity used to position/stretch the bitmap within its bounds.
[read-only]
HasAntiAliasbool. Indicates whether anti-aliasing is enabled for this drawable.
[read-only]
HasMipMapbool. Indicates whether the mipmap hint is enabled on this drawable's bitmap.
[read-only]
IsAutoMirroredbool. Tells if this Drawable will be automatically mirrored when its layout direction is RTL right-to-left.
[read-only]
override
Opacityint. Return the opacity/transparency of this Drawable.
[read-only]
PaintAndroid.Graphics.Paint. Returns the paint used to render this drawable.
TileModeXAndroid.Graphics.Shader.TileMode. Indicates the repeat behavior of this drawable on the X axis.
TileModeYAndroid.Graphics.Shader.TileMode. Indicates the repeat behavior of this drawable on the Y axis.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

override
Draw(Android.Graphics.Canvas)
Draw in its bounds (set via setBounds) respecting optional effects such as alpha (set via setAlpha) and color filter (set via setColorFilter).
override
GetConstantState() : Drawable.ConstantState
Return a NoType:android/graphics/drawable/Drawable$ConstantState;Href=../../../../reference/android/graphics/drawable/Drawable.ConstantState.html instance that holds the shared state of this Drawable.
override
SetAlpha(int)
Specify an alpha value for the drawable. 0 means fully transparent, and 255 means fully opaque.
SetAntiAlias(bool)
Enables or disables anti-aliasing for this drawable.
override
SetColorFilter(Android.Graphics.ColorFilter)
Specify an optional color filter for the drawable.
SetMipMap(bool)
Enables or disables the mipmap hint for this drawable's bitmap.
SetTargetDensity(Android.Graphics.Canvas)
Set the density scale at which this drawable will be rendered.
SetTargetDensity(Android.Util.DisplayMetrics)
Set the density scale at which this drawable will be rendered.
SetTargetDensity(int)
Set the density at which this drawable will be rendered.
SetTileModeXY(Android.Graphics.Shader.TileMode, Android.Graphics.Shader.TileMode)
Sets the repeat behavior of this drawable on both axis.