Compartir a través de


Canvas.DrawRGB(Int32, Int32, Int32) Method

Definition

Fill the entire canvas' bitmap (restricted to the current clip) with the specified RGB color, using srcover porterduff mode.

[Android.Runtime.Register("drawRGB", "(III)V", "GetDrawRGB_IIIHandler")]
public virtual void DrawRGB (int r, int g, int b);
[<Android.Runtime.Register("drawRGB", "(III)V", "GetDrawRGB_IIIHandler")>]
abstract member DrawRGB : int * int * int -> unit
override this.DrawRGB : int * int * int -> unit

Parameters

r
Int32

red component (0..255) of the color to draw onto the canvas

g
Int32

green component (0..255) of the color to draw onto the canvas

b
Int32

blue component (0..255) of the color to draw onto the canvas

Attributes

Remarks

Fill the entire canvas' bitmap (restricted to the current clip) with the specified RGB color, using srcover porterduff mode.

Java documentation for android.graphics.Canvas.drawRGB(int, int, 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