ImageDecoderKt

Added in 1.1.0

public final class ImageDecoderKt


Summary

Public methods

static final @NonNull Bitmap

Create a Bitmap from a Source

static final @NonNull Drawable

Create a Drawable from a Source

Public methods

decodeBitmap

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

Create a Bitmap from a Source

See also
decodeBitmap

decodeDrawable

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

Create a Drawable from a Source

See also
decodeDrawable