Color Struct
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.
[Java.Interop.JniValueMarshaler(typeof(Android.Graphics.ColorValueMarshaler))]
public struct Color
[<Java.Interop.JniValueMarshaler(typeof(Android.Graphics.ColorValueMarshaler))>]
type Color = struct
- Inheritance
-
Color
- Attributes
Remarks
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.
Constructors
Color(Byte, Byte, Byte, Byte) |
Initializes a new instance of the Color struct. |
Color(Byte, Byte, Byte) |
Initializes a new instance of the Color struct. |
Color(Int32, Int32, Int32, Int32) |
Initializes a new instance of the Color struct. |
Color(Int32, Int32, Int32) |
Initializes a new instance of the Color struct. |
Color(Int32) |
Initializes a new instance of the Color struct. |
Properties
Methods
Argb(Int32, Int32, Int32, Int32) | |
ColorToHSV(Color, Single[]) | |
Equals(Object) |
Determines if this instance of a Color struct and another are the same. |
GetAlphaComponent(Int32) |
Gets the Alpha component from an integer color. |
GetBlueComponent(Int32) |
Gets the Blue component from an integer color. |
GetBrightness() | |
GetGreenComponent(Int32) |
Gets the Green component from an integer color. |
GetHashCode() | |
GetHue() | |
GetRedComponent(Int32) |
Gets the Red component from an integer color. |
GetSaturation() | |
HSVToColor(Int32, Single[]) | |
HSVToColor(Single[]) | |
ParseColor(String) | |
Rgb(Int32, Int32, Int32) | |
RGBToHSV(Int32, Int32, Int32, Single[]) | |
ToArgb() |
Return an integer representation of the Color. |
ToString() |
Creates a string representation of the Color. |
Operators
Equality(Color, Color) |
Determine if two Color structs have the same value. |
Implicit(Color to Int32) |
Implicitly casts a Color to an integer. |
Inequality(Color, Color) |
Determine if two Color structs do not have the same value. |