coil-base / coil.transform / BlurTransformation

BlurTransformation

class BlurTransformation :Transformation

A Transformation that applies a Gaussian blur to an image.

Parameters

context - The Context used to create a RenderScript instance.

radius - The radius of the blur.

sampling - The sampling multiplier used to scale the image. Values > 1 will downscale the image. Values between 0 and 1 will upscale the image.

Constructors

Name Summary
<init> A Transformation that applies a Gaussian blur to an image.BlurTransformation(context:Context, radius:Float= DEFAULT_RADIUS, sampling:Float= DEFAULT_SAMPLING)

Functions

Name Summary
key Return a unique key for this transformation.fun key():String
transform Apply the transformation to input.suspend fun transform(pool:BitmapPool, input:Bitmap, size:Size):Bitmap