Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static class

Type.Builder

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

Class Overview

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)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Type.Builder ( RenderScript rs, Element e)

Create a new builder object.

Parameters
e The element for the type to be created.

Public Methods

public Type create ()

Validate structure and create a new Type.

Returns
  • Type

public Type.Builder setFaces (boolean value)

public Type.Builder setMipmaps (boolean value)

public Type.Builder setX (int value)

Add a dimension to the Type.

public Type.Builder setY (int value)

public Type.Builder setYuvFormat (int yuvFormat)

Set the YUV layout for a Type.

Parameters
yuvFormat YV12 , NV21 , or YUV_420_888 .

public Type.Builder setZ (int value)