Android.Renderscripts.Allocation.CreateFromBitmap Method
Creates an Allocation from a Android.Graphics.Bitmap.

Syntax

[Android.Runtime.Register("createFromBitmap", "(Landroid/renderscript/RenderScript;Landroid/graphics/Bitmap;)Landroid/renderscript/Allocation;", "")]
public static Allocation CreateFromBitmap (RenderScript rs, Android.Graphics.Bitmap b)

Parameters

rs
Context to which the allocation will belong.
b
bitmap source for the allocation data

Returns

Documentation for this section has not yet been entered.

Remarks

Creates an Allocation from a Android.Graphics.Bitmap.

With target API version 18 or greater, this Allocation will be created with Allocation.USAGE_SHARED, Allocation.USAGE_SCRIPT, and Allocation.USAGE_GRAPHICS_TEXTURE. With target API version 17 or lower, this Allocation will be created with Allocation.USAGE_GRAPHICS_TEXTURE.

[Android Documentation]

Requirements

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