ImageDecoderKt

public final class ImageDecoderKt


Summary

Public methods

static final @RequiresApi(value = "28") @NonNull Bitmap

Create a Bitmap from a Source

static final @RequiresApi(value = "28") @NonNull Drawable

Create a Drawable from a Source

Public methods

ImageDecoderKt.decodeBitmap

@RequiresApi(value = "28")
@NonNull
public static final @RequiresApi(value = "28") Bitmap ImageDecoderKt.decodeBitmap(
    @NonNull ImageDecoder.Source receiver,
    @NonNull Function3<@NonNull ImageDecoder, @NonNull ImageDecoder.ImageInfo, @NonNull ImageDecoder.SourceUnit> action
)

Create a Bitmap from a Source

See also
decodeBitmap

ImageDecoderKt.decodeDrawable

@RequiresApi(value = "28")
@NonNull
public static final @RequiresApi(value = "28") Drawable ImageDecoderKt.decodeDrawable(
    @NonNull ImageDecoder.Source receiver,
    @NonNull Function3<@NonNull ImageDecoder, @NonNull ImageDecoder.ImageInfo, @NonNull ImageDecoder.SourceUnit> action
)

Create a Drawable from a Source

See also
decodeDrawable