IXpsOMThumbnailGenerator interface (xpsobjectmodel.h)
Generates a thumbnail image resource.
Inheritance
The IXpsOMThumbnailGenerator interface inherits from the IUnknown interface. IXpsOMThumbnailGenerator also has these types of members:
Methods
The IXpsOMThumbnailGenerator interface has these methods.
IXpsOMThumbnailGenerator::GenerateThumbnail Generates a thumbnail image of a page. |
Remarks
To instantiate this interface, call CoCreateInstance as shown in the code example that follows.
IXpsOMThumbnailGenerator *newInterface;
// Note the implicit requirement that CoInitializeEx
// has previously been called from this thread.
hr = CoCreateInstance(
__uuidof(XpsOMThumbnailGenerator),
NULL,
CLSCTX_INPROC_SERVER,
__uuidof(IXpsOMThumbnailGenerator),
reinterpret_cast<LPVOID*>(&newInterface)
);
if (SUCCEEDED(hr))
{
// use newInterface
newInterface->Release();
}
else
{
// evaluate HRESULT error returned in hr
}
This interface requires XpsRasterService.dll. If XpsRasterService.dll is not present when CoCreateInstance is called to create an IXpsOMThumbnailGenerator instance, CoCreateInstance returns E_FAIL.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | xpsobjectmodel.h |