Android.Views.TextureView.GetBitmap Method

Syntax

[Android.Runtime.Register("getBitmap", "(Landroid/graphics/Bitmap;)Landroid/graphics/Bitmap;", "GetGetBitmap_Landroid_graphics_Bitmap_Handler")]
public virtual Android.Graphics.Bitmap GetBitmap (Android.Graphics.Bitmap bitmap)

See Also

TextureView.IsAvailable
TextureView.GetBitmap(int, System.Int32)
TextureView.Bitmap

Parameters

bitmap
The bitmap to copy the content of the surface texture into, cannot be null, all configurations are supported

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif the hardware rendering context cannot be acquired to capture the bitmap

Remarks

Copies the content of this view's surface texture into the specified bitmap. If the surface texture is not available, the copy is not executed. The content of the surface texture will be scaled to fit exactly inside the specified bitmap.

Do not invoke this method from a drawing method (TextureView.OnDraw(Android.Graphics.Canvas) for instance).

If an error occurs, the bitmap is left unchanged.

[Android Documentation]

Requirements

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