Freigeben über


AllocationAdapter.CreateTyped(RenderScript, Allocation, Type) Method

Definition

Create an arbitrary window into the base allocation.

[Android.Runtime.Register("createTyped", "(Landroid/renderscript/RenderScript;Landroid/renderscript/Allocation;Landroid/renderscript/Type;)Landroid/renderscript/AllocationAdapter;", "", ApiSince=23)]
public static Android.Renderscripts.AllocationAdapter? CreateTyped (Android.Renderscripts.RenderScript? rs, Android.Renderscripts.Allocation? a, Android.Renderscripts.Type? t);
[<Android.Runtime.Register("createTyped", "(Landroid/renderscript/RenderScript;Landroid/renderscript/Allocation;Landroid/renderscript/Type;)Landroid/renderscript/AllocationAdapter;", "", ApiSince=23)>]
static member CreateTyped : Android.Renderscripts.RenderScript * Android.Renderscripts.Allocation * Android.Renderscripts.Type -> Android.Renderscripts.AllocationAdapter

Parameters

t
Type

Returns

Attributes

Remarks

Create an arbitrary window into the base allocation. The type describes the shape of the window.

Any dimensions present in the type must be equal or smaller to the dimensions in the source allocation. A dimension present in the allocation that is not present in the type will be constrained away with the selectors.

If a dimension is present in both the type and allocation, one of two things will happen.

If the type is smaller than the allocation, a window will be created, the selected value in the adapter for that dimension will act as the base address, and the type will describe the size of the view starting at that point.

If the type and allocation dimension are of the same size, then setting the selector for the dimension will be an error.

Java documentation for android.renderscript.AllocationAdapter.createTyped(android.renderscript.RenderScript, android.renderscript.Allocation, android.renderscript.Type).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to