coil-base / coil.transform / GrayscaleTransformation

GrayscaleTransformation

class GrayscaleTransformation :Transformation

A Transformation that converts an image to shades of gray.

Constructors

Name Summary
<init> A Transformation that converts an image to shades of gray.GrayscaleTransformation()

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