Canvas.DrawColor 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
DrawColor(Color) |
Fill the entire canvas' bitmap (restricted to the current clip) with the specified color, using srcover porterduff mode. |
DrawColor(Int64) |
Fill the entire canvas' bitmap (restricted to the current clip) with the specified color, using srcover porterduff mode. |
DrawColor(Color, BlendMode) |
Fill the entire canvas' bitmap (restricted to the current clip) with the specified color and blendmode. |
DrawColor(Color, PorterDuff+Mode) |
Fill the entire canvas' bitmap (restricted to the current clip) with the specified color, using srcover porterduff mode. |
DrawColor(Int64, BlendMode) |
Fill the entire canvas' bitmap (restricted to the current clip) with the specified color and blendmode. |
DrawColor(Color)
Fill the entire canvas' bitmap (restricted to the current clip) with the specified color, using srcover porterduff mode.
[Android.Runtime.Register("drawColor", "(I)V", "GetDrawColor_IHandler")]
public virtual void DrawColor (Android.Graphics.Color color);
[<Android.Runtime.Register("drawColor", "(I)V", "GetDrawColor_IHandler")>]
abstract member DrawColor : Android.Graphics.Color -> unit
override this.DrawColor : Android.Graphics.Color -> unit
Parameters
- color
- Color
the color to draw onto the canvas
- Attributes
Remarks
Fill the entire canvas' bitmap (restricted to the current clip) with the specified color, using srcover porterduff mode.
Java documentation for android.graphics.Canvas.drawColor(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
DrawColor(Int64)
Fill the entire canvas' bitmap (restricted to the current clip) with the specified color, using srcover porterduff mode.
[Android.Runtime.Register("drawColor", "(J)V", "GetDrawColor_JHandler", ApiSince=29)]
public virtual void DrawColor (long color);
[<Android.Runtime.Register("drawColor", "(J)V", "GetDrawColor_JHandler", ApiSince=29)>]
abstract member DrawColor : int64 -> unit
override this.DrawColor : int64 -> unit
Parameters
- color
- Int64
the ColorLong
to draw onto the canvas. See the Color
class for details about ColorLong
s.
- Attributes
Remarks
Fill the entire canvas' bitmap (restricted to the current clip) with the specified color, using srcover porterduff mode.
Java documentation for android.graphics.Canvas.drawColor(long)
.
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
DrawColor(Color, BlendMode)
Fill the entire canvas' bitmap (restricted to the current clip) with the specified color and blendmode.
[Android.Runtime.Register("drawColor", "(ILandroid/graphics/BlendMode;)V", "GetDrawColor_ILandroid_graphics_BlendMode_Handler", ApiSince=29)]
public virtual void DrawColor (Android.Graphics.Color color, Android.Graphics.BlendMode mode);
[<Android.Runtime.Register("drawColor", "(ILandroid/graphics/BlendMode;)V", "GetDrawColor_ILandroid_graphics_BlendMode_Handler", ApiSince=29)>]
abstract member DrawColor : Android.Graphics.Color * Android.Graphics.BlendMode -> unit
override this.DrawColor : Android.Graphics.Color * Android.Graphics.BlendMode -> unit
Parameters
- color
- Color
the color to draw onto the canvas
- mode
- BlendMode
the blendmode to apply to the color
- Attributes
Remarks
Fill the entire canvas' bitmap (restricted to the current clip) with the specified color and blendmode.
Java documentation for android.graphics.Canvas.drawColor(int, android.graphics.BlendMode)
.
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
DrawColor(Color, PorterDuff+Mode)
Fill the entire canvas' bitmap (restricted to the current clip) with the specified color, using srcover porterduff mode.
[Android.Runtime.Register("drawColor", "(ILandroid/graphics/PorterDuff$Mode;)V", "GetDrawColor_ILandroid_graphics_PorterDuff_Mode_Handler")]
public virtual void DrawColor (Android.Graphics.Color color, Android.Graphics.PorterDuff.Mode mode);
[<Android.Runtime.Register("drawColor", "(ILandroid/graphics/PorterDuff$Mode;)V", "GetDrawColor_ILandroid_graphics_PorterDuff_Mode_Handler")>]
abstract member DrawColor : Android.Graphics.Color * Android.Graphics.PorterDuff.Mode -> unit
override this.DrawColor : Android.Graphics.Color * Android.Graphics.PorterDuff.Mode -> unit
Parameters
- color
- Color
the color to draw onto the canvas
- mode
- PorterDuff.Mode
the porter-duff mode to apply to the color
- Attributes
Remarks
Java documentation for android.graphics.Canvas.drawColor(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
DrawColor(Int64, BlendMode)
Fill the entire canvas' bitmap (restricted to the current clip) with the specified color and blendmode.
[Android.Runtime.Register("drawColor", "(JLandroid/graphics/BlendMode;)V", "GetDrawColor_JLandroid_graphics_BlendMode_Handler", ApiSince=29)]
public virtual void DrawColor (long color, Android.Graphics.BlendMode mode);
[<Android.Runtime.Register("drawColor", "(JLandroid/graphics/BlendMode;)V", "GetDrawColor_JLandroid_graphics_BlendMode_Handler", ApiSince=29)>]
abstract member DrawColor : int64 * Android.Graphics.BlendMode -> unit
override this.DrawColor : int64 * Android.Graphics.BlendMode -> unit
Parameters
- color
- Int64
the ColorLong
to draw onto the canvas. See the Color
class for details about ColorLong
s.
- mode
- BlendMode
the blendmode to apply to the color
- Attributes
Remarks
Fill the entire canvas' bitmap (restricted to the current clip) with the specified color and blendmode.
Java documentation for android.graphics.Canvas.drawColor(long, android.graphics.BlendMode)
.
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.