Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

Type.Builder

public static class Type.Builder
extends Object

java.lang.Object
   ↳ android.renderscript.Type.Builder


Builder class for Type.

Summary

Public constructors

Type.Builder(RenderScript rs, Element e)

Create a new builder object.

Public methods

Type create()

Validate structure and create a new Type.

Type.Builder setFaces(boolean value)
Type.Builder setMipmaps(boolean value)
Type.Builder setX(int value)

Add a dimension to the Type.

Type.Builder setY(int value)
Type.Builder setYuvFormat(int yuvFormat)

Set the YUV layout for a Type.

Type.Builder setZ(int value)

Inherited methods

Public constructors

Type.Builder

added in API level 11
public Type.Builder (RenderScript rs, 
                Element e)

Create a new builder object.

Parameters
e Element: The element for the type to be created.

Public methods

create

added in API level 11
public Type create ()

Validate structure and create a new Type.

Returns
Type Type

setFaces

added in API level 11
public Type.Builder setFaces (boolean value)

Parameters
value boolean

Returns
Type.Builder

setMipmaps

added in API level 11
public Type.Builder setMipmaps (boolean value)

Parameters
value boolean

Returns
Type.Builder

setX

added in API level 11
public Type.Builder setX (int value)

Add a dimension to the Type.

Returns
Type.Builder

setY

added in API level 11
public Type.Builder setY (int value)

Parameters
value int

Returns
Type.Builder

setYuvFormat

added in API level 18
public Type.Builder setYuvFormat (int yuvFormat)

Set the YUV layout for a Type.

Parameters
yuvFormat int: ImageFormat.YV12, ImageFormat.NV21, or ImageFormat.YUV_420_888.

Returns
Type.Builder

setZ

added in API level 18
public Type.Builder setZ (int value)

Parameters
value int

Returns
Type.Builder