다음을 통해 공유


ColorExtensions.WithAlpha(Color, Int32) 메서드

정의

이 색을 기반으로 새 색을 만들지만 새 알파(0-255)를 사용합니다.

public static System.Drawing.Color WithAlpha (this System.Drawing.Color color, int alpha);

매개 변수

color
System.Drawing.Color

기본으로 사용할 색입니다.

alpha
System.Int32

0-255를 설정할 알파입니다.

반환

System.Drawing.Color

새 색입니다.

적용 대상