Added in API level 17
Deprecated in API level 31

ScriptIntrinsicBlur


class ScriptIntrinsicBlur : ScriptIntrinsic
kotlin.Any
   ↳ android.renderscript.BaseObj
   ↳ android.renderscript.Script
   ↳ android.renderscript.ScriptIntrinsic
   ↳ android.renderscript.ScriptIntrinsicBlur

Intrinsic Gausian blur filter. Applies a gaussian blur of the specified radius to all elements of an allocation.

Summary

Public methods
static ScriptIntrinsicBlur!

Create an intrinsic for applying a blur to an allocation.

Unit

Apply the filter to the input and save to the specified allocation.

Unit

Apply the filter to the input and save to the specified allocation.

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 blur.

Unit
setRadius(radius: Float)

Set the radius of the Blur.

Public methods

create

Added in API level 17
static fun create(
    rs: RenderScript!,
    e: Element!
): ScriptIntrinsicBlur!

Deprecated: Deprecated in Java.

Create an intrinsic for applying a blur to an allocation. The default radius is 5.0. Supported elements types are Element#U8, Element#U8_4.

Parameters
rs RenderScript!: The RenderScript context
e Element!: Element type for inputs and outputs
Return
ScriptIntrinsicBlur! ScriptIntrinsicBlur

forEach

Added in API level 17
fun forEach(aout: Allocation!): Unit

Deprecated: Deprecated in Java.

Apply the filter to the input and save to the specified allocation.

Parameters
aout Allocation!: Output allocation. Must match creation element type.

forEach

Added in API level 21
Deprecated in API level 31
fun forEach(
    aout: Allocation!,
    opt: Script.LaunchOptions!
): Unit

Deprecated: Deprecated in Java.

Apply the filter to the input and save to the specified allocation.

Parameters
aout Allocation!: Output allocation. Must match creation element type.
opt Script.LaunchOptions!: LaunchOptions for clipping

getFieldID_Input

Added in API level 17
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

Added in API level 17
fun getKernelID(): 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 17
fun setInput(ain: Allocation!): Unit

Deprecated: Deprecated in Java.

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

Parameters
ain Allocation!: The input allocation

setRadius

Added in API level 17
fun setRadius(radius: Float): Unit

Deprecated: Deprecated in Java.

Set the radius of the Blur. Supported range 0 < radius <= 25

Parameters
radius Float: The radius of the blur