Color Constructors
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.
Overloads
Color()
Color(Vector4)
Color(Single)
Color(Byte, Byte, Byte)
- Source:
- Color.cs
- Source:
- Color.cs
public:
Color(System::Byte red, System::Byte green, System::Byte blue);
public Color (byte red, byte green, byte blue);
new Microsoft.Maui.Graphics.Color : byte * byte * byte -> Microsoft.Maui.Graphics.Color
Public Sub New (red As Byte, green As Byte, blue As Byte)
Parameters
- red
- Byte
- green
- Byte
- blue
- Byte
Applies to
Color(Int32, Int32, Int32)
- Source:
- Color.cs
- Source:
- Color.cs
public:
Color(int red, int green, int blue);
public Color (int red, int green, int blue);
new Microsoft.Maui.Graphics.Color : int * int * int -> Microsoft.Maui.Graphics.Color
Public Sub New (red As Integer, green As Integer, blue As Integer)
Parameters
- red
- Int32
- green
- Int32
- blue
- Int32
Applies to
Color(Single, Single, Single)
- Source:
- Color.cs
- Source:
- Color.cs
public:
Color(float red, float green, float blue);
public Color (float red, float green, float blue);
new Microsoft.Maui.Graphics.Color : single * single * single -> Microsoft.Maui.Graphics.Color
Public Sub New (red As Single, green As Single, blue As Single)
Parameters
- red
- Single
- green
- Single
- blue
- Single
Applies to
Color(Byte, Byte, Byte, Byte)
- Source:
- Color.cs
- Source:
- Color.cs
public:
Color(System::Byte red, System::Byte green, System::Byte blue, System::Byte alpha);
public Color (byte red, byte green, byte blue, byte alpha);
new Microsoft.Maui.Graphics.Color : byte * byte * byte * byte -> Microsoft.Maui.Graphics.Color
Public Sub New (red As Byte, green As Byte, blue As Byte, alpha As Byte)
Parameters
- red
- Byte
- green
- Byte
- blue
- Byte
- alpha
- Byte
Applies to
Color(Int32, Int32, Int32, Int32)
- Source:
- Color.cs
- Source:
- Color.cs
public:
Color(int red, int green, int blue, int alpha);
public Color (int red, int green, int blue, int alpha);
new Microsoft.Maui.Graphics.Color : int * int * int * int -> Microsoft.Maui.Graphics.Color
Public Sub New (red As Integer, green As Integer, blue As Integer, alpha As Integer)
Parameters
- red
- Int32
- green
- Int32
- blue
- Int32
- alpha
- Int32
Applies to
Color(Single, Single, Single, Single)
- Source:
- Color.cs
- Source:
- Color.cs
public:
Color(float red, float green, float blue, float alpha);
public Color (float red, float green, float blue, float alpha);
new Microsoft.Maui.Graphics.Color : single * single * single * single -> Microsoft.Maui.Graphics.Color
Public Sub New (red As Single, green As Single, blue As Single, alpha As Single)
Parameters
- red
- Single
- green
- Single
- blue
- Single
- alpha
- Single
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET MAUI