加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20111018182200/http://developer.android.com/reference/android/renderscript/AllocationAdapter.html
public class

AllocationAdapter

extends Allocation
java.lang.Object
   ↳ android.renderscript.Allocation
     ↳ android.renderscript.AllocationAdapter

Summary

[Expand]
Inherited Constants
From class android.renderscript.Allocation
Public Methods
void copyFrom(BaseObj[] d)
void copyFrom(Bitmap b)
Copy an allocation from a bitmap.
void copyFrom(short[] d)
Copy an allocation from an array.
void copyFrom(byte[] d)
Copy an allocation from an array.
void copyFrom(int[] d)
Copy an allocation from an array.
void copyFrom(float[] d)
Copy an allocation from an array.
void copyTo(Bitmap b)
static AllocationAdapter create2D(RenderScript rs, Allocation a)
void readData(float[] d)
void readData(int[] d)
void setFace(Type.CubemapFace cf)
void setLOD(int lod)
void setY(int y)
void setZ(int z)
void subData(int xoff, FieldPacker fp)
void subData1D(int off, int count, byte[] d)
void subData1D(int off, int count, float[] d)
void subData1D(int off, int count, int[] d)
void subData1D(int off, int count, short[] d)
void subData2D(int xoff, int yoff, int w, int h, float[] d)
void subData2D(int xoff, int yoff, int w, int h, int[] d)
void subElementData(int xoff, int component_number, FieldPacker fp)
[Expand]
Inherited Methods
From class android.renderscript.Allocation
From class java.lang.Object

Public Methods

public void copyFrom (BaseObj[] d)

Since: API Level 11

public void copyFrom (Bitmap b)

Since: API Level 11

Copy an allocation from a bitmap. The height, width, and format of the bitmap must match the existing allocation.

Parameters
b the source bitmap

public void copyFrom (short[] d)

Since: API Level 11

Copy an allocation from an array. This variant is type checked and will generate exceptions if the Allocation type is not a 16 bit integer type.

Parameters
d the source data array

public void copyFrom (byte[] d)

Since: API Level 11

Copy an allocation from an array. This variant is type checked and will generate exceptions if the Allocation type is not a 8 bit integer type.

Parameters
d the source data array

public void copyFrom (int[] d)

Since: API Level 11

Copy an allocation from an array. This variant is type checked and will generate exceptions if the Allocation type is not a 32 bit integer type.

Parameters
d the source data array

public void copyFrom (float[] d)

Since: API Level 11

Copy an allocation from an array. This variant is type checked and will generate exceptions if the Allocation type is not a 32 bit float type.

Parameters
d the source data array

public void copyTo (Bitmap b)

Since: API Level 11

public static AllocationAdapter create2D (RenderScript rs, Allocation a)

Since: API Level 11

public void readData (float[] d)

Since: API Level 11

public void readData (int[] d)

Since: API Level 11

public void setFace (Type.CubemapFace cf)

Since: API Level 11

public void setLOD (int lod)

Since: API Level 11

public void setY (int y)

Since: API Level 11

public void setZ (int z)

Since: API Level 11

public void subData (int xoff, FieldPacker fp)

Since: API Level 11

public void subData1D (int off, int count, byte[] d)

Since: API Level 11

public void subData1D (int off, int count, float[] d)

Since: API Level 11

public void subData1D (int off, int count, int[] d)

Since: API Level 11

public void subData1D (int off, int count, short[] d)

Since: API Level 11

public void subData2D (int xoff, int yoff, int w, int h, float[] d)

Since: API Level 11

public void subData2D (int xoff, int yoff, int w, int h, int[] d)

Since: API Level 11

public void subElementData (int xoff, int component_number, FieldPacker fp)

Since: API Level 11