Paint.SetColor(Int64) 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.
Set the paint's color with a ColorLong
.
[Android.Runtime.Register("setColor", "(J)V", "GetSetColor_JHandler", ApiSince=29)]
public virtual void SetColor (long color);
[<Android.Runtime.Register("setColor", "(J)V", "GetSetColor_JHandler", ApiSince=29)>]
abstract member SetColor : int64 -> unit
override this.SetColor : int64 -> unit
Parameters
- color
- Int64
The new color (including alpha and ColorSpace
)
to set in the paint.
- Attributes
Remarks
Set the paint's color with a ColorLong
. Note that the color is a long with an encoded ColorSpace
as well as alpha and r,g,b. These values are not premultiplied, meaning that 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(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.