Compartir a través de


Paint.SetARGB(Int32, Int32, Int32, Int32) Method

Definition

Helper to setColor(), that takes a,r,g,b and constructs the color int

[Android.Runtime.Register("setARGB", "(IIII)V", "GetSetARGB_IIIIHandler")]
public virtual void SetARGB (int a, int r, int g, int b);
[<Android.Runtime.Register("setARGB", "(IIII)V", "GetSetARGB_IIIIHandler")>]
abstract member SetARGB : int * int * int * int -> unit
override this.SetARGB : int * int * int * int -> unit

Parameters

a
Int32

The new alpha component (0..255) of the paint's color.

r
Int32

The new red component (0..255) of the paint's color.

g
Int32

The new green component (0..255) of the paint's color.

b
Int32

The new blue component (0..255) of the paint's color.

Attributes

Remarks

Helper to setColor(), that takes a,r,g,b and constructs the color int

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