Android.Views.TextureView.GetBitmap Method

Syntax

[Android.Runtime.Register("getBitmap", "(II)Landroid/graphics/Bitmap;", "GetGetBitmap_IIHandler")]
public virtual Android.Graphics.Bitmap GetBitmap (int width, int height)

See Also

TextureView.IsAvailable
TextureView.GetBitmap(Android.Graphics.Bitmap)
TextureView.Bitmap

Parameters

width
The width of the bitmap to create
height
The height of the bitmap to create

Returns

Documentation for this section has not yet been entered.

Remarks

Returns a Android.Graphics.Bitmap representation of the content of the associated surface texture. If the surface texture is not available, this method returns null.

The bitmap returned by this method uses the NoType:android/graphics/Bitmap$Config;Href=../../../reference/android/graphics/Bitmap.Config.html#ARGB_8888 pixel format.

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

If an error occurs during the copy, an empty bitmap will be returned.

[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