Color.FromRgba 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.
Overloads
FromRgba(Single, Single, Single, Single) | |
FromRgba(Int32, Int32, Int32, Int32) | |
FromRgba(Byte, Byte, Byte, Byte) | |
FromRgba(String) | |
FromRgba(Double, Double, Double, Double) |
FromRgba(Single, Single, Single, Single)
public:
static Microsoft::Maui::Graphics::Color ^ FromRgba(float r, float g, float b, float a);
public static Microsoft.Maui.Graphics.Color FromRgba (float r, float g, float b, float a);
static member FromRgba : single * single * single * single -> Microsoft.Maui.Graphics.Color
Public Shared Function FromRgba (r As Single, g As Single, b As Single, a As Single) As Color
Parameters
- r
- Single
- g
- Single
- b
- Single
- a
- Single
Returns
Applies to
FromRgba(Int32, Int32, Int32, Int32)
public:
static Microsoft::Maui::Graphics::Color ^ FromRgba(int red, int green, int blue, int alpha);
public static Microsoft.Maui.Graphics.Color FromRgba (int red, int green, int blue, int alpha);
static member FromRgba : int * int * int * int -> Microsoft.Maui.Graphics.Color
Public Shared Function FromRgba (red As Integer, green As Integer, blue As Integer, alpha As Integer) As Color
Parameters
- red
- Int32
- green
- Int32
- blue
- Int32
- alpha
- Int32
Returns
Applies to
FromRgba(Byte, Byte, Byte, Byte)
public:
static Microsoft::Maui::Graphics::Color ^ FromRgba(System::Byte red, System::Byte green, System::Byte blue, System::Byte alpha);
public static Microsoft.Maui.Graphics.Color FromRgba (byte red, byte green, byte blue, byte alpha);
static member FromRgba : byte * byte * byte * byte -> Microsoft.Maui.Graphics.Color
Public Shared Function FromRgba (red As Byte, green As Byte, blue As Byte, alpha As Byte) As Color
Parameters
- red
- Byte
- green
- Byte
- blue
- Byte
- alpha
- Byte
Returns
Applies to
FromRgba(String)
public:
static Microsoft::Maui::Graphics::Color ^ FromRgba(System::String ^ colorAsHex);
public static Microsoft.Maui.Graphics.Color FromRgba (string colorAsHex);
static member FromRgba : string -> Microsoft.Maui.Graphics.Color
Public Shared Function FromRgba (colorAsHex As String) As Color
Parameters
- colorAsHex
- String
Returns
Applies to
FromRgba(Double, Double, Double, Double)
public:
static Microsoft::Maui::Graphics::Color ^ FromRgba(double r, double g, double b, double a);
public static Microsoft.Maui.Graphics.Color FromRgba (double r, double g, double b, double a);
static member FromRgba : double * double * double * double -> Microsoft.Maui.Graphics.Color
Public Shared Function FromRgba (r As Double, g As Double, b As Double, a As Double) As Color
Parameters
- r
- Double
- g
- Double
- b
- Double
- a
- Double
Returns
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET MAUI
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示