PorterDuffKt

public final class PorterDuffKt


Summary

Public methods

static final @NonNull PorterDuffColorFilter

Creates a new PorterDuffColorFilter that uses this PorterDuff.Mode as the alpha compositing or blending mode, and the specified color.

static final @NonNull PorterDuffXfermode

Creates a new PorterDuffXfermode that uses this PorterDuff.Mode as the alpha compositing or blending mode.

Public methods

PorterDuffKt.toColorFilter

@NonNull
public static final PorterDuffColorFilter PorterDuffKt.toColorFilter(@NonNull PorterDuff.Mode receiver, int color)

Creates a new PorterDuffColorFilter that uses this PorterDuff.Mode as the alpha compositing or blending mode, and the specified color.

PorterDuffKt.toXfermode

@NonNull
public static final PorterDuffXfermode PorterDuffKt.toXfermode(@NonNull PorterDuff.Mode receiver)

Creates a new PorterDuffXfermode that uses this PorterDuff.Mode as the alpha compositing or blending mode.