LinearGradientBrush::SetLinearColors 메서드(gdiplusbrush.h)

LinearGradientBrush::SetLinearColors 메서드는 이 선형 그라데이션 브러시의 시작 색과 끝 색을 설정합니다.

구문

Status SetLinearColors(
  [in] const Color & color1,
  [in] const Color & color2
);

매개 변수

[in] color1

형식: const Color&

이 선형 그라데이션 브러시의 시작 경계선에 있는 색을 지정하는 Color 개체에 대한 참조입니다.

[in] color2

형식: const Color&

이 선형 그라데이션 브러시의 끝 경계선에 있는 색을 지정하는 Color 개체에 대한 참조입니다.

반환 값

형식: 상태

메서드가 성공하면 Status 열거형의 요소인 Ok를 반환합니다.

메서드가 실패하면 Status 열거형의 다른 요소 중 하나를 반환합니다.

요구 사항

요구 사항
지원되는 최소 클라이언트 Windows XP, Windows 2000 Professional [데스크톱 앱만 해당]
지원되는 최소 서버 Windows 2000 Server[데스크톱 앱만]
대상 플랫폼 Windows
헤더 gdiplusbrush.h(Gdiplus.h 포함)
라이브러리 Gdiplus.lib
DLL Gdiplus.dll

추가 정보

브러시 및 채워진 도형

색상

선형 그라데이션 만들기

도형에 색 그라데이션 채우기

LinearGradientBrush

LinearGradientBrush::GetLinearColors

LinearGradientBrush::SetInterpolationColors

Rect