다음을 통해 공유


IXpsOMSolidColorBrush 인터페이스(xpsobjectmodel.h)

단일 색 브러시입니다.

상속

IXpsOMSolidColorBrush 인터페이스는 IXpsOMBrush에서 상속됩니다. IXpsOMSolidColorBrush 에는 다음과 같은 유형의 멤버도 있습니다.

메서드

IXpsOMSolidColorBrush 인터페이스에는 이러한 메서드가 있습니다.

 
IXpsOMSolidColorBrush::Clone

인터페이스의 전체 복사본을 만듭니다. (IXpsOMSolidColorBrush.Clone)
IXpsOMSolidColorBrush::GetColor

브러시의 색 값과 색 프로필을 가져옵니다.
IXpsOMSolidColorBrush::SetColor

브러시의 색 값과 색 프로필을 설정합니다.

설명

다음 코드 예제에서는 이 인터페이스의 instance 만드는 방법을 보여 줍니다.


IXpsOMSolidColorBrush             *newInterface;
// The following values are defined outside of 
// this example.
//  XPS_COLOR                     color;
//  IXpsOMColorProfileResource    *colorProfile;

// Note the implicit requirement that CoInitializeEx 
//  has previously been called from this thread.

hr = CoCreateInstance(
    __uuidof(XpsOMObjectFactory),
    NULL,
    CLSCTX_INPROC_SERVER,
    _uuidof(IXpsOMObjectFactory),
    reinterpret_cast<LPVOID*>(&xpsFactory)
    );

if (SUCCEEDED(hr))
{
    hr = xpsFactory->CreateSolidColorBrush (
        &color,
        colorProfile,
        &newInterface);

    if (SUCCEEDED(hr))
    {
        // use newInterface

        newInterface->Release();
    }
    xpsFactory->Release();
}
else
{
    // evaluate HRESULT error returned in hr
}

요구 사항

요구 사항
지원되는 최소 클라이언트 Windows 7, Windows Vista SP2 및 Windows Vista용 플랫폼 업데이트 [데스크톱 앱 | UWP 앱]
지원되는 최소 서버 Windows Server 2008 R2, Windows Server 2008 SP2 및 Windows Server 2008용 플랫폼 업데이트 [데스크톱 앱 | UWP 앱]
대상 플랫폼 Windows
헤더 xpsobjectmodel.h

추가 정보

IXpsOMBrush

IXpsOMObjectFactory::CreateSolidColorBrush

IXpsOMObjectFactory::CreateSolidColorBrush

인터페이스

XML Paper Specification