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 final class

ScriptIntrinsicResize

extends ScriptIntrinsic
java.lang.Object
   ↳ android.renderscript.BaseObj
     ↳ android.renderscript.Script
       ↳ android.renderscript.ScriptIntrinsic
         ↳ android.renderscript.ScriptIntrinsicResize

Class Overview

Intrinsic for performing a resize of a 2D allocation.

Summary

Public Methods
static ScriptIntrinsicResize create ( RenderScript rs)
void forEach_bicubic ( Allocation aout)
Resize copy the input allocation to the output specified.
void forEach_bicubic ( Allocation aout, Script.LaunchOptions opt)
Resize copy the input allocation to the output specified.
Script.FieldID getFieldID_Input ()
Get a FieldID for the input field of this intrinsic.
Script.KernelID getKernelID_bicubic ()
Get a KernelID for this intrinsic kernel.
void setInput ( Allocation ain)
Set the input of the resize.
[Expand]
Inherited Methods
From class android.renderscript.Script
From class android.renderscript.BaseObj
From class java.lang.Object

Public Methods

public static ScriptIntrinsicResize create ( RenderScript rs)

Parameters
rs The RenderScript context
Returns
  • ScriptIntrinsicResize

public void forEach_bicubic ( Allocation aout)

Resize copy the input allocation to the output specified. The Allocation is rescaled if necessary using bi-cubic interpolation.

Parameters
aout Output allocation. Element type must match current input. Must not be same as input.

public void forEach_bicubic ( Allocation aout, Script.LaunchOptions opt)

Resize copy the input allocation to the output specified. The Allocation is rescaled if necessary using bi-cubic interpolation.

Parameters
aout Output allocation. Element type must match current input.
opt LaunchOptions for clipping

public Script.FieldID getFieldID_Input ()

Get a FieldID for the input field of this intrinsic.

Returns
  • Script.FieldID The FieldID object.

public Script.KernelID getKernelID_bicubic ()

Get a KernelID for this intrinsic kernel.

Returns
  • Script.KernelID The KernelID object.

public void setInput ( Allocation ain)

Set the input of the resize. Must match the element type supplied during create.

Parameters
ain The input allocation.