다음을 통해 공유


ImageAttributes::SetColorMatrices 메서드(gdiplusimageattributes.h)

ImageAttributes::SetColorMatrices 메서드는 지정된 범주에 대한 색 조정 행렬과 회색조 조정 행렬을 설정합니다.

구문

Status SetColorMatrices(
  [in]           const ColorMatrix *colorMatrix,
  [in]           const ColorMatrix *grayMatrix,
  [in, optional] ColorMatrixFlags  mode,
  [in, optional] ColorAdjustType   type
);

매개 변수

[in] colorMatrix

형식: const ColorMatrix*

5×5 색 조정 행렬에 대한 포인터입니다.

[in] grayMatrix

형식: const ColorMatrix*

5×5 회색조 조정 행렬에 대한 포인터입니다.

[in, optional] mode

형식: ColorMatrixFlags

색 조정 및 회색조 조정 행렬의 영향을 받는 이미지 및 색의 유형을 지정하는 ColorMatrixFlags 열거형의 요소입니다. 기본값은 ColorMatrixFlagsDefault입니다.

[in, optional] type

형식: ColorAdjustType

색 조정 및 회색조 조정 행렬이 설정된 범주를 지정하는 ColorAdjustType 열거형의 요소입니다. 기본값은 ColorAdjustTypeDefault입니다.

반환 값

형식: 상태

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

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

설명

ImageAttributes 개체는 기본, 비트맵, 브러시, 펜 및 텍스트의 다섯 가지 조정 범주에 대한 색 및 회색조 설정을 유지합니다. 예를 들어 기본 범주에 대한 조정 행렬, 비트맵 범주에 대한 다양한 조정 행렬 및 펜 범주에 대해 여전히 다른 조정 행렬을 지정할 수 있습니다.

기본 색 및 회색조 조정 설정은 자체 조정 설정이 없는 모든 범주에 적용됩니다. 예를 들어 펜 범주에 대한 조정 설정을 지정하지 않으면 기본 설정이 펜 범주에 적용됩니다.

특정 범주에 대한 색 또는 회색조 조정 설정을 지정하는 즉시 기본 조정 설정이 해당 범주에 더 이상 적용되지 않습니다. 예를 들어 기본 범주에 대한 조정 설정 컬렉션을 지정한다고 가정합니다. ColorAdjustTypePenImageAttributes::SetColorMatrices 메서드에 전달하여 펜 범주에 대한 색 조정 및 회색조 조정 매트릭스를 설정하는 경우 펜에는 기본 조정 설정이 적용되지 않습니다.

요구 사항

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

추가 정보

Bitmap

색상

ColorAdjustType

ColorMatrix

이미지

ImageAttributes

ImageAttributes::ClearColorMatrices

ImageAttributes::ClearColorMatrix

ImageAttributes::SetColorMatrix

ImageAttributes::SetToIdentity

Metafile

다시 칠하기