Example usage for Java android.renderscript Allocation fields, constructors, methods, implement or subclass
The text is from its open source code.
int | USAGE_SCRIPT The Allocation will be bound to and accessed by scripts. |
int | USAGE_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. |
void | copyTo(Bitmap b) Copy from the Allocation into a android.graphics.Bitmap . |
void | copyTo(Object array) Copy from the Allocation into an array. |
void | copyTo(byte[] d) Copy from the Allocation into a byte array. |
void | copyTo(short[] d) Copy from the Allocation into a short array. |
void | copyTo(int[] d) Copy from the Allocation into a int array. |
void | copyTo(float[] d) Copy from the Allocation into a float array. |
Allocation | createFromBitmap(RenderScript rs, Bitmap b, MipmapControl mips, int usage) Creates an Allocation from a android.graphics.Bitmap . |
Allocation | createFromBitmap(RenderScript rs, Bitmap b) Creates an Allocation from a android.graphics.Bitmap . |
Allocation | createSized(RenderScript rs, Element e, int count) Creates an Allocation with a specified number of given elements |
Allocation | createTyped(RenderScript rs, Type type) Creates an Allocation for use by scripts with a given android.renderscript.Type and no mipmaps |
Allocation | createTyped(RenderScript rs, Type type, int usage) Creates an Allocation with the size specified by the type and no mipmaps generated by default |
void | destroy() For USAGE_IO_OUTPUT, destroy() implies setSurface(null). |
Element | getElement() Get the android.renderscript.Element of the android.renderscript.Type of the Allocation. |
Type | getType() Get the android.renderscript.Type of the Allocation. |