Condividi tramite


Paint.Color Property

Definition

Return the paint's color in sRGB. -or- Set the paint's color.

public virtual Android.Graphics.Color Color { [Android.Runtime.Register("getColor", "()I", "GetGetColorHandler")] get; [Android.Runtime.Register("setColor", "(I)V", "GetSetColor_IHandler")] set; }
[<get: Android.Runtime.Register("getColor", "()I", "GetGetColorHandler")>]
[<set: Android.Runtime.Register("setColor", "(I)V", "GetSetColor_IHandler")>]
member this.Color : Android.Graphics.Color with get, set

Property Value

the paint's color (and alpha).

Attributes

Remarks

Property getter documentation:

Return the paint's color in sRGB. Note that the color is a 32bit value containing alpha as well as r,g,b. This 32bit value is not premultiplied, meaning that its alpha can be any value, regardless of the values of r,g,b. See the Color class for more details.

Java documentation for android.graphics.Paint.getColor().

Property setter documentation:

Set the paint's color. Note that the color is an int containing alpha as well as r,g,b. This 32bit value is not premultiplied, meaning that its alpha can be any value, regardless of the values of r,g,b. See the Color class for more details.

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