다음을 통해 공유


IXpsOMColorProfileResource 인터페이스(xpsobjectmodel.h)

색 프로필 리소스에 대한 IStream 인터페이스를 제공합니다.

상속

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

메서드

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

 
IXpsOMColorProfileResource::GetStream

이 리소스와 연결된 스트림의 읽기 전용인 새 복사본을 가져옵니다. (IXpsOMColorProfileResource.GetStream)
IXpsOMColorProfileResource::SetContent

이 리소스와 연결할 읽기 전용 스트림을 설정합니다. (IXpsOMColorProfileResource.SetContent)

설명

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


IXpsOMColorProfileResource    *newInterface;
IOpcPartUri                   *partUri;

// 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))
{
    // The partUriString and acquiredStream variables 
    //   are defined outside of this example.
    hr = xpsFactory->CreatePartUri(
        partUriString, 
        &partUri);
    if (SUCCEEDED(hr))
    {
        hr = xpsFactory->CreateColorProfileResource (
            acquiredStream, 
            partUri,
            &newInterface);
        if (SUCCEEDED(hr))
        {
            // use newInterface

            newInterface->Release();
        }
        partUri->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

추가 정보

IXpsOMObjectFactory::CreateColorProfileResource

IXpsOMResource

인터페이스

XML Paper Specification