IXpsOMObjectFactory1::ConvertJpegXRToHDPhoto method (xpsobjectmodel_1.h)

Converts an image resource from a JpegXR to an HD Photo.

Syntax

HRESULT ConvertJpegXRToHDPhoto(
  IXpsOMImageResource *imageResource
);

Parameters

imageResource

[in, out] The image resource to convert.

When the method returns, the converted image resource.

Return value

Possible values include, but are not limited to, the following. For information about XPS document API return values that are not listed here, see XPS Document Errors.

S_OK: The method succeeded.

XPS_E_INVALID_CONTENT_TYPE: The image type is not XPS_IMAGE_TYPE_JXR.

E_INVALIDARG if data is not recognized by WDP decoder or another error occurred.

Remarks

This image referenced by imageResource is changed from an XPS_IMAGE_TYPE_JPEGXR image type to an XPS_IMAGE_TYPE_WDP image type. This method converts the data stream of the image resource;, however, the part name of the resource remains the same.

Requirements

   
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 [desktop apps | UWP apps]
Target Platform Windows
Header xpsobjectmodel_1.h
Library None

See also

IXpsOMObjectFactory1