ScriptIntrinsicBlur
classScriptIntrinsicBlur: 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(rs: RenderScript!, e: Element!) Create an intrinsic for applying a blur to an allocation. |
Unit |
forEach(aout: Allocation!) Apply the filter to the input and save to the specified allocation. |
Unit |
forEach(aout: Allocation!, opt: Script.LaunchOptions!) 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 |
setInput(ain: Allocation!) Set the input of the blur. |
Unit |
Set the radius of the Blur. |
Public methods
create
static funcreate(
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
funforEach(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
funforEach(
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
fungetFieldID_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
fungetKernelID(): Script.KernelID!
Deprecated: Deprecated in Java.
Get a KernelID for this intrinsic kernel.
Return | |
---|---|
Script.KernelID! |
Script.KernelID The KernelID object. |
setInput
funsetInput(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
funsetRadius(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 |