Color.FromScRgb(Single, Single, Single, Single) Color.FromScRgb(Single, Single, Single, Single) Color.FromScRgb(Single, Single, Single, Single) Color.FromScRgb(Single, Single, Single, Single) Method

정의

지정한 ScRGB 알파 채널 값과 색 채널 값을 사용하여 새 Color 구조체를 만듭니다.Creates a new Color structure by using the specified ScRGB alpha channel and color channel values.

public:
 static System::Windows::Media::Color FromScRgb(float a, float r, float g, float b);
public static System.Windows.Media.Color FromScRgb (float a, float r, float g, float b);
static member FromScRgb : single * single * single * single -> System.Windows.Media.Color
Public Shared Function FromScRgb (a As Single, r As Single, g As Single, b As Single) As Color

매개 변수

a
Single Single Single Single

새 색의 ScRGB 알파 채널 ScA입니다.The ScRGB alpha channel, ScA, of the new color.

r
Single Single Single Single

새 색의 ScRGB 빨강 채널 ScR입니다.The ScRGB red channel, ScR, of the new color.

g
Single Single Single Single

새 색의 ScRGB 녹색 채널 ScG입니다.The ScRGB green channel, ScG, of the new color.

b
Single Single Single Single

새 색의 ScRGB 파랑 채널 ScB입니다.The ScRGB blue channel, ScB, of the new color.

반환

지정한 값을 가진 Color 구조체입니다.A Color structure with the specified values.

예제

private Color FromScRgbExample()
{
    // Create a blue color using the FromScRgb static method.
    Color myScRgbColor = new Color();
    myScRgbColor = Color.FromScRgb(1, 0, 0, 1);
    return myScRgbColor;
}
Private Function FromScRgbExample() As Color
    ' Create a blue color using the FromScRgb static method.
    Dim myScRgbColor As New Color()
    myScRgbColor = Color.FromScRgb(1, 0, 0, 1)
    Return myScRgbColor
End Function

설명

색의 알파 채널 색상의 투명도 결정합니다.The alpha channel of a color determines the amount of transparency of the color. 알파 값이 1에는 색이 완전히 불투명 하 고 값이 0 이면 색이 완전히 투명 하 게는 나타냅니다.An alpha value of 1 indicates that the color is completely opaque, and a value of 0 indicates that the color is completely transparent.

적용 대상

추가 정보