Android Guides | Samples

Android.Graphics.Drawables.PictureDrawable Class

Drawable subclass that wraps a Picture, allowing the picture to be used wherever a Drawable is supported.

See Also: PictureDrawable

Syntax

[Android.Runtime.Register("android/graphics/drawable/PictureDrawable", DoNotGenerateAcw=true)]
public class PictureDrawable : Drawable

Remarks

Drawable subclass that wraps a Picture, allowing the picture to be used wherever a Drawable is supported.

[Android Documentation]

Requirements

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

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

See Also: Drawable

Public Constructors

Construct a new drawable referencing the specified picture.

Protected Constructors

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

Public Properties

[read-only]
override
OpacityInt32. Return the opacity/transparency of this Drawable.
PicturePicture. Return the picture associated with the drawable.

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(Canvas)
Draw in its bounds (set via setBounds) respecting optional effects such as alpha (set via setAlpha) and color filter (set via setColorFilter).
override
SetAlpha(Int32)
Specify an alpha value for the drawable. 0 means fully transparent, and 255 means fully opaque.
override
SetColorFilter(ColorFilter)
Specify an optional color filter for the drawable.