[ Web Proxy ]
URL:
Viewing: https://developer.android.com/reference/kotlin/android/renderscript/ScriptIntrinsicResize [Back]  [Original]

ScriptIntrinsicResize  |  API reference  |  Android Developers Skip to main content
Essentials Design & Plan Develop Google Play Blog
Search:
Android Studio
Android Developers [Android Developers]
Stay organized with collections Save and categorize content based on your preferences.
Added in API level 20
Deprecated in API level 31

ScriptIntrinsicResize


class ScriptIntrinsicResize : ScriptIntrinsic
kotlin.Any
android.renderscript.BaseObj
android.renderscript.Script
android.renderscript.ScriptIntrinsic
android.renderscript.ScriptIntrinsicResize

This class was deprecated in API level 31.

Renderscript has been deprecated in API level 31. Please refer to the migration guide for the proposed alternatives.

Intrinsic for performing a resize of a 2D allocation.

Summary

Public methods
static ScriptIntrinsicResize!

Supported elements types are Element.U8, Element.U8_2, Element.U8_3, Element.U8_4 Element.F32, Element.F32_2, Element.F32_3, Element.F32_4

Unit

Resize copy the input allocation to the output specified.

Unit

Resize copy the input allocation to the output specified.

Script.FieldID!

Get a FieldID for the input field of this intrinsic.

Script.KernelID!

Get a KernelID for this intrinsic kernel.

Unit

Set the input of the resize.

Public methods

create

Added in API level 20
static fun create(rs: RenderScript!): ScriptIntrinsicResize!

Deprecated: Deprecated in Java.

Supported elements types are Element.U8, Element.U8_2, Element.U8_3, Element.U8_4 Element.F32, Element.F32_2, Element.F32_3, Element.F32_4

Parameters
rs RenderScript!: The RenderScript context
Return
ScriptIntrinsicResize! ScriptIntrinsicResize

forEach_bicubic

Added in API level 20
fun forEach_bicubic(aout: Allocation!): Unit

Deprecated: Deprecated in Java.

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

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

forEach_bicubic

Added in API level 20
fun forEach_bicubic(
    aout: Allocation!,
    opt: Script.LaunchOptions!
): Unit

Deprecated: Deprecated in Java.

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

Parameters
aout Allocation!: Output allocation. Element type must match current input.
opt Script.LaunchOptions!: LaunchOptions for clipping

getFieldID_Input

Added in API level 20
fun getFieldID_Input(): Script.FieldID!

Deprecated: Deprecated in Java.

Get a FieldID for the input field of this intrinsic.

Return
Script.FieldID! Script.FieldID The FieldID object.

getKernelID_bicubic

Added in API level 20
fun getKernelID_bicubic(): Script.KernelID!

Deprecated: Deprecated in Java.

Get a KernelID for this intrinsic kernel.

Return
Script.KernelID! Script.KernelID The KernelID object.

setInput

Added in API level 20
fun setInput(ain: Allocation!): Unit

Deprecated: Deprecated in Java.

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

Parameters
ain Allocation!: The input allocation.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-02-13 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-02-13 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page