public class DuotoneImageView
extends AppCompatImageView
colorWhite, colorBlack, contrast attributes.| Constructor and Description |
|---|
DuotoneImageView(android.content.Context context) |
DuotoneImageView(android.content.Context context,
android.util.AttributeSet attrs) |
DuotoneImageView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr) |
| Modifier and Type | Method and Description |
|---|---|
int |
getColorBlack() |
int |
getColorWhite() |
float |
getContrast() |
void |
setDuotoneColorFilter(int colorWhite,
int colorBlack,
float contrast)
Set duotone color filter.
|
public DuotoneImageView(android.content.Context context)
public DuotoneImageView(android.content.Context context,
android.util.AttributeSet attrs)
public DuotoneImageView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr)
public int getColorBlack()
public int getColorWhite()
public float getContrast()
public void setDuotoneColorFilter(int colorWhite,
int colorBlack,
float contrast)
colorWhite - color whitecolorBlack - color blackcontrast - contrast