Android.Renderscripts.Allocation.CreateFromBitmapResource Method
Creates a non-mipmapped Allocation to use as a graphics texture from the Android.Graphics.Bitmap referenced by resource ID.

Syntax

[Android.Runtime.Register("createFromBitmapResource", "(Landroid/renderscript/RenderScript;Landroid/content/res/Resources;I)Landroid/renderscript/Allocation;", "")]
public static Allocation CreateFromBitmapResource (RenderScript rs, Android.Content.Res.Resources res, int id)

Parameters

rs
Context to which the allocation will belong.
res
application resources
id
resource id to load the data from

Returns

Documentation for this section has not yet been entered.

Remarks

Creates a non-mipmapped Allocation to use as a graphics texture from the Android.Graphics.Bitmap referenced by resource ID.

With target API version 18 or greater, this allocation will be created with 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