Class ShadowPorterDuffColorFilter

java.lang.Object
org.robolectric.shadows.ShadowPorterDuffColorFilter
Direct Known Subclasses:
ShadowNativePorterDuffColorFilter

@Implements(android.graphics.PorterDuffColorFilter.class) public class ShadowPorterDuffColorFilter extends Object
  • Constructor Details

    • ShadowPorterDuffColorFilter

      public ShadowPorterDuffColorFilter()
  • Method Details

    • __constructor__

      @Implementation(maxSdk=19) protected void __constructor__(int color, PorterDuff.Mode mode)
    • getColor

      @Implementation(minSdk=21) public int getColor()
      Returns:
      Returns the ARGB color used to tint the source pixels when this filter is applied.
    • getMode

      @Implementation(minSdk=21) public PorterDuff.Mode getMode()
      Returns:
      Returns the Porter-Duff mode used to composite this color filter's color with the source pixel when this filter is applied.