IXpsOMMatrixTransform interface (xpsobjectmodel.h)

Specifies an affine matrix transform that can be applied to other objects in the object model.

Inheritance

The IXpsOMMatrixTransform interface inherits from IXpsOMShareable. IXpsOMMatrixTransform also has these types of members:

Methods

The IXpsOMMatrixTransform interface has these methods.

 
IXpsOMMatrixTransform::Clone

Makes a deep copy of the interface. (IXpsOMMatrixTransform.Clone)
IXpsOMMatrixTransform::GetMatrix

Gets the XPS_MATRIX structure, which specifies the transform matrix.
IXpsOMMatrixTransform::SetMatrix

Sets the XPS_MATRIX structure, which specifies the transform matrix.

Remarks

The code example that follows illustrates how to create an instance of this interface.


IXpsOMMatrixTransform    *newInterface;
// The following value is defined outside of 
// this example.
XPS_MATRIX        newMatrix;

// 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->CreateMatrixTransform (
        &newMatrix,
        &newInterface);

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

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

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header xpsobjectmodel.h

See also

IXpsOMObjectFactory::CreateMatrixTransform

IXpsOMShareable

Interfaces

XML Paper Specification

XPS_MATRIX