Color.FromRgb 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
FromRgb(Byte, Byte, Byte) | |
FromRgb(Double, Double, Double) | |
FromRgb(Int32, Int32, Int32) | |
FromRgb(Single, Single, Single) |
FromRgb(Byte, Byte, Byte)
public:
static Microsoft::Maui::Graphics::Color ^ FromRgb(System::Byte red, System::Byte green, System::Byte blue);
public static Microsoft.Maui.Graphics.Color FromRgb (byte red, byte green, byte blue);
static member FromRgb : byte * byte * byte -> Microsoft.Maui.Graphics.Color
Public Shared Function FromRgb (red As Byte, green As Byte, blue As Byte) As Color
Parameters
- red
- Byte
- green
- Byte
- blue
- Byte
Returns
Applies to
FromRgb(Double, Double, Double)
public:
static Microsoft::Maui::Graphics::Color ^ FromRgb(double red, double green, double blue);
public static Microsoft.Maui.Graphics.Color FromRgb (double red, double green, double blue);
static member FromRgb : double * double * double -> Microsoft.Maui.Graphics.Color
Public Shared Function FromRgb (red As Double, green As Double, blue As Double) As Color
Parameters
- red
- Double
- green
- Double
- blue
- Double
Returns
Applies to
FromRgb(Int32, Int32, Int32)
public:
static Microsoft::Maui::Graphics::Color ^ FromRgb(int red, int green, int blue);
public static Microsoft.Maui.Graphics.Color FromRgb (int red, int green, int blue);
static member FromRgb : int * int * int -> Microsoft.Maui.Graphics.Color
Public Shared Function FromRgb (red As Integer, green As Integer, blue As Integer) As Color
Parameters
- red
- Int32
- green
- Int32
- blue
- Int32
Returns
Applies to
FromRgb(Single, Single, Single)
public:
static Microsoft::Maui::Graphics::Color ^ FromRgb(float red, float green, float blue);
public static Microsoft.Maui.Graphics.Color FromRgb (float red, float green, float blue);
static member FromRgb : single * single * single -> Microsoft.Maui.Graphics.Color
Public Shared Function FromRgb (red As Single, green As Single, blue As Single) As Color
Parameters
- red
- Single
- green
- Single
- blue
- Single
Returns
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈