Drawable.SetColorFilter Drawable.SetColorFilter Method

Definition

Overloads

SetColorFilter(ColorFilter) SetColorFilter(ColorFilter)

Specify an optional color filter for the drawable.

SetColorFilter(Color, PorterDuff+Mode) SetColorFilter(Color, PorterDuff+Mode)

Specify a color and Porter-Duff mode to be the color filter for this drawable.

SetColorFilter(ColorFilter) SetColorFilter(ColorFilter)

Specify an optional color filter for the drawable.

[Android.Runtime.Register("setColorFilter", "(Landroid/graphics/ColorFilter;)V", "GetSetColorFilter_Landroid_graphics_ColorFilter_Handler")]
public abstract void SetColorFilter (Android.Graphics.ColorFilter colorFilter);
abstract member SetColorFilter : Android.Graphics.ColorFilter -> unit

Parameters

colorFilter
ColorFilter ColorFilter

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

SetColorFilter(Color, PorterDuff+Mode) SetColorFilter(Color, PorterDuff+Mode)

Specify a color and Porter-Duff mode to be the color filter for this drawable.

[Android.Runtime.Register("setColorFilter", "(ILandroid/graphics/PorterDuff$Mode;)V", "GetSetColorFilter_ILandroid_graphics_PorterDuff_Mode_Handler")]
public virtual void SetColorFilter (Android.Graphics.Color color, Android.Graphics.PorterDuff.Mode mode);
abstract member SetColorFilter : Android.Graphics.Color * Android.Graphics.PorterDuff.Mode -> unit
override this.SetColorFilter : Android.Graphics.Color * Android.Graphics.PorterDuff.Mode -> unit

Parameters

color
Color Color

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to