ColorDrawable.SetColorFilter(ColorFilter) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the color filter applied to this color.
[Android.Runtime.Register("setColorFilter", "(Landroid/graphics/ColorFilter;)V", "GetSetColorFilter_Landroid_graphics_ColorFilter_Handler")]
public override void SetColorFilter (Android.Graphics.ColorFilter? colorFilter);
[<Android.Runtime.Register("setColorFilter", "(Landroid/graphics/ColorFilter;)V", "GetSetColorFilter_Landroid_graphics_ColorFilter_Handler")>]
override this.SetColorFilter : Android.Graphics.ColorFilter -> unit
Parameters
- colorFilter
- ColorFilter
The color filter to apply, or null
to remove the
existing color filter
- Attributes
Remarks
Sets the color filter applied to this color.
Only supported on version android.os.Build.VERSION_CODES#LOLLIPOP
and above. Calling this method has no effect on earlier versions.
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.