Java android.renderscript Allocation fields, constructors, methods, implement or subclass

Example usage for Java android.renderscript Allocation fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.renderscript Allocation.

The text is from its open source code.

Field

intUSAGE_SCRIPT
The Allocation will be bound to and accessed by scripts.
intUSAGE_SHARED
The Allocation's backing store will be inherited from another object (usually a android.graphics.Bitmap ); copying to or from the original source Bitmap will cause a synchronization rather than a full copy.

Method

voidcopyTo(Bitmap b)
Copy from the Allocation into a android.graphics.Bitmap .
voidcopyTo(Object array)
Copy from the Allocation into an array.
voidcopyTo(byte[] d)
Copy from the Allocation into a byte array.
voidcopyTo(short[] d)
Copy from the Allocation into a short array.
voidcopyTo(int[] d)
Copy from the Allocation into a int array.
voidcopyTo(float[] d)
Copy from the Allocation into a float array.
AllocationcreateFromBitmap(RenderScript rs, Bitmap b, MipmapControl mips, int usage)
Creates an Allocation from a android.graphics.Bitmap .
AllocationcreateFromBitmap(RenderScript rs, Bitmap b)
Creates an Allocation from a android.graphics.Bitmap .
AllocationcreateSized(RenderScript rs, Element e, int count)
Creates an Allocation with a specified number of given elements
AllocationcreateTyped(RenderScript rs, Type type)
Creates an Allocation for use by scripts with a given android.renderscript.Type and no mipmaps
AllocationcreateTyped(RenderScript rs, Type type, int usage)
Creates an Allocation with the size specified by the type and no mipmaps generated by default
voiddestroy()
For USAGE_IO_OUTPUT, destroy() implies setSurface(null).
ElementgetElement()
Get the android.renderscript.Element of the android.renderscript.Type of the Allocation.
TypegetType()
Get the android.renderscript.Type of the Allocation.