ImageView.SetColorFilter 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.
Overloads
SetColorFilter(Color) |
Set a tinting option for the image. |
SetColorFilter(ColorFilter) |
Apply an arbitrary colorfilter to the image. |
SetColorFilter(Color, PorterDuff+Mode) |
Set a tinting option for the image. |
SetColorFilter(Color)
Set a tinting option for the image.
[Android.Runtime.Register("setColorFilter", "(I)V", "")]
public void SetColorFilter (Android.Graphics.Color color);
[<Android.Runtime.Register("setColorFilter", "(I)V", "")>]
member this.SetColorFilter : Android.Graphics.Color -> unit
Parameters
- color
- Color
Color tint to apply.
- Attributes
Remarks
Set a tinting option for the image. Assumes PorterDuff.Mode#SRC_ATOP
blending mode.
Java documentation for android.widget.ImageView.setColorFilter(int)
.
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
SetColorFilter(ColorFilter)
Apply an arbitrary colorfilter to the image.
[Android.Runtime.Register("setColorFilter", "(Landroid/graphics/ColorFilter;)V", "GetSetColorFilter_Landroid_graphics_ColorFilter_Handler")]
public virtual void SetColorFilter (Android.Graphics.ColorFilter? cf);
[<Android.Runtime.Register("setColorFilter", "(Landroid/graphics/ColorFilter;)V", "GetSetColorFilter_Landroid_graphics_ColorFilter_Handler")>]
abstract member SetColorFilter : Android.Graphics.ColorFilter -> unit
override this.SetColorFilter : Android.Graphics.ColorFilter -> unit
Parameters
- cf
- ColorFilter
the colorfilter to apply (may be null)
- Attributes
Remarks
Apply an arbitrary colorfilter to the image.
Java documentation for android.widget.ImageView.setColorFilter(android.graphics.ColorFilter)
.
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.
See also
Applies to
SetColorFilter(Color, PorterDuff+Mode)
Set a tinting option for the image.
[Android.Runtime.Register("setColorFilter", "(ILandroid/graphics/PorterDuff$Mode;)V", "")]
public void SetColorFilter (Android.Graphics.Color color, Android.Graphics.PorterDuff.Mode? mode);
[<Android.Runtime.Register("setColorFilter", "(ILandroid/graphics/PorterDuff$Mode;)V", "")>]
member this.SetColorFilter : Android.Graphics.Color * Android.Graphics.PorterDuff.Mode -> unit
Parameters
- color
- Color
Color tint to apply.
- mode
- PorterDuff.Mode
How to apply the color. The standard mode is PorterDuff Mode SRC_ATOP
- Attributes
Remarks
Java documentation for android.widget.ImageView.setColorFilter(int)
.
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.