Package org.robolectric.shadows
Class ShadowPorterDuffColorFilter
- java.lang.Object
-
- org.robolectric.shadows.ShadowPorterDuffColorFilter
-
@Implements(android.graphics.PorterDuffColorFilter.class) public class ShadowPorterDuffColorFilter extends Object
-
-
Constructor Summary
Constructors Constructor Description ShadowPorterDuffColorFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
__constructor__(int color, PorterDuff.Mode mode)
int
getColor()
PorterDuff.Mode
getMode()
-
-
-
Method Detail
-
__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.
-
-