Color 구조체

정의

알파, 빨간색, 녹색 및 파란색 채널로 색을 설명합니다.

public value class Color : IFormattable
public struct Color : IFormattable
[System.Security.SecurityCritical]
public struct Color : IFormattable
type Color = struct
    interface IFormattable
[<System.Security.SecurityCritical>]
type Color = struct
    interface IFormattable
Public Structure Color
Implements IFormattable
상속
특성
구현

설명

이 구조체는 WinRT(Windows 런타임) Color 구조체의 .NET 프로젝션을 나타냅니다. 자세한 내용은 UWP API 참조의 을 참조하세요.

속성

A

색의 sRGB 알파 채널 값을 가져오거나 설정합니다.

B

색의 SRGB 파랑 채널 값을 가져오거나 설정합니다.

G

색의 sRGB 녹색 채널 값을 가져오거나 설정합니다.

R

색의 sRGB 빨강 채널 값을 가져오거나 설정합니다.

메서드

Equals(Color)

지정한 Color 구조체가 현재 색과 같은지 여부를 테스트합니다.

Equals(Object)

지정한 개체가 Color 구조체이면서 현재 색과 동일한지 여부를 테스트합니다.

FromArgb(Byte, Byte, Byte, Byte)

지정한 sRGB 알파 채널 값과 색 채널 값을 사용하여 새 Color 구조체를 만듭니다.

GetHashCode()

현재 Color 구조체의 해시 코드를 가져옵니다.

ToString()

16진수 표기법의 ARGB 채널을 사용하여 색의 문자열 표현을 만듭니다.

ToString(IFormatProvider)

ARGB 채널과 지정한 형식 공급자를 사용하여 색의 문자열 표현을 만듭니다.

연산자

Equality(Color, Color)

Color 구조체가 같은지 테스트합니다.

Inequality(Color, Color)

Color 구조체가 서로 다른지 테스트합니다.

명시적 인터페이스 구현

IFormattable.ToString(String, IFormatProvider)

이 멤버에 대한 설명은 ToString(String, IFormatProvider)를 참조하세요.

적용 대상

추가 정보