ImageAttributes.SetOutputChannelColorProfile 메서드

정의

출력 채널 색 프로필 파일을 설정합니다.

오버로드

SetOutputChannelColorProfile(String, ColorAdjustType)

지정된 범주에 대한 출력 채널 색 프로필 파일을 설정합니다.

SetOutputChannelColorProfile(String)

기본 범주에 대한 출력 채널 색 프로필 파일을 설정합니다.

SetOutputChannelColorProfile(String, ColorAdjustType)

Source:
ImageAttributes.cs
Source:
ImageAttributes.cs
Source:
ImageAttributes.cs

지정된 범주에 대한 출력 채널 색 프로필 파일을 설정합니다.

public:
 void SetOutputChannelColorProfile(System::String ^ colorProfileFilename, System::Drawing::Imaging::ColorAdjustType type);
public void SetOutputChannelColorProfile (string colorProfileFilename, System.Drawing.Imaging.ColorAdjustType type);
member this.SetOutputChannelColorProfile : string * System.Drawing.Imaging.ColorAdjustType -> unit
Public Sub SetOutputChannelColorProfile (colorProfileFilename As String, type As ColorAdjustType)

매개 변수

colorProfileFilename
String

색 프로필 파일의 경로 이름입니다. 색 프로필 파일이 %SystemRoot%\System32\Spool\Drivers\Color 디렉터리에 있으면 이 매개 변수는 파일 이름이 될 수 있습니다. 그렇지 않으면 이 매개 변수는 정규화된 경로 이름이어야 합니다.

type
ColorAdjustType

출력 채널 색 프로필 파일이 설정되는 범주를 지정하는 ColorAdjustType의 요소입니다.

설명

SetOutputChannelColorProfile 메서드를 SetOutputChannel 사용하여 이미지를 CMYK(cyan-magenta-yellow-black) 색 공간으로 변환하고 CMYK 색 채널 중 하나의 강도를 검사할 수 있습니다. 예를 들어 다음 단계를 수행하는 코드를 작성한다고 가정해 보겠습니다.

  1. 를 만듭니다 Image.

  2. ImageAttributes 개체 만들기

  3. 개체의 SetOutputChannel 메서드에 전달 ColorChannelC 합니다ImageAttributes.

  4. 색 프로필 파일의 경로 이름을 개체의 메서드에 SetOutputChannelColorProfileImageAttributes 전달합니다.

  5. ImageAttributes 개체의 Image 경로를 메서드에 DrawImage 전달합니다.

GDI+는 색 프로필 파일을 사용하여 이미지에 있는 각 픽셀의 시안 구성 요소를 계산하고 렌더링된 이미지의 각 픽셀은 시안 채널의 강도를 나타내는 회색 음영이 됩니다.

개체는 ImageAttributes 기본, 비트맵, 브러시, 펜 및 텍스트의 다섯 가지 조정 범주에 대해 색 및 회색조 설정을 유지합니다. 예를 들어 기본 범주에 대한 출력 채널 색 프로필 파일과 비트맵 범주에 대해 다른 출력 채널 색 프로필 파일을 지정할 수 있습니다.

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

특정 범주에 대한 색 조정 또는 회색조 조정 설정을 지정하는 즉시 기본 조정 설정이 해당 범주에 더 이상 적용되지 않습니다. 예를 들어 기본 범주에 대한 조정 설정 컬렉션을 지정한다고 가정합니다. 메서드에 전달 BitmapSetOutputChannelColorProfile 하여 비트맵 범주에 대한 출력 채널 색 프로필 파일을 설정하는 경우 비트맵에 기본 조정 설정이 적용되지 않습니다.

적용 대상

SetOutputChannelColorProfile(String)

Source:
ImageAttributes.cs
Source:
ImageAttributes.cs
Source:
ImageAttributes.cs

기본 범주에 대한 출력 채널 색 프로필 파일을 설정합니다.

public:
 void SetOutputChannelColorProfile(System::String ^ colorProfileFilename);
public void SetOutputChannelColorProfile (string colorProfileFilename);
member this.SetOutputChannelColorProfile : string -> unit
Public Sub SetOutputChannelColorProfile (colorProfileFilename As String)

매개 변수

colorProfileFilename
String

색 프로필 파일의 경로 이름입니다. 색 프로필 파일이 %SystemRoot%\System32\Spool\Drivers\Color 디렉터리에 있으면 이 매개 변수는 파일 이름이 될 수 있습니다. 그렇지 않으면 이 매개 변수는 정규화된 경로 이름이어야 합니다.

설명

SetOutputChannelColorProfile 메서드를 SetOutputChannel 사용하여 이미지를 CMYK(cyan-magenta-yellow-black) 색 공간으로 변환하고 CMYK 색 채널 중 하나의 강도를 검사할 수 있습니다. 예를 들어 다음 단계를 수행하는 코드를 작성한다고 가정해 보겠습니다.

  1. 를 만듭니다 Image.

  2. ImageAttributes 개체 만들기

  3. 개체의 SetOutputChannel 메서드에 전달 ColorChannelC 합니다ImageAttributes.

  4. 색 프로필 파일의 경로 이름을 개체의 메서드에 SetOutputChannelColorProfileImageAttributes 전달합니다.

  5. ImageAttributes 개체의 Image 경로를 메서드에 DrawImage 전달합니다.

GDI+는 색 프로필 파일을 사용하여 이미지에 있는 각 픽셀의 시안 구성 요소를 계산하고 렌더링된 이미지의 각 픽셀은 시안 채널의 강도를 나타내는 회색 음영이 됩니다.

개체는 ImageAttributes 기본, 비트맵, 브러시, 펜 및 텍스트의 다섯 가지 조정 범주에 대해 색 및 회색조 설정을 유지합니다. 예를 들어 기본 범주에 대한 출력 채널 색 프로필 파일과 비트맵 범주에 대해 다른 출력 채널 색 프로필 파일을 지정할 수 있습니다.

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

적용 대상