Android Guides | Samples

Android.Graphics.Bitmap.ExtractAlpha Method

Returns a new bitmap that captures the alpha values of the original.

Syntax

[Android.Runtime.Register("extractAlpha", "()Landroid/graphics/Bitmap;", "")]
public Bitmap ExtractAlpha ()

Remarks

Returns a new bitmap that captures the alpha values of the original. This may be drawn with Canvas.drawBitmap(), where the color(s) will be taken from the paint that is passed to the draw call.

[Android Documentation]

Requirements

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