PorterDuffKt

Added in 1.1.0

public final class PorterDuffKt


Summary

Public methods

static final @NonNull PorterDuffColorFilter
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.

static final @NonNull PorterDuffXfermode

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

Public methods

toColorFilter

public static final @NonNull PorterDuffColorFilter 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.

toXfermode

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

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