IXpsOMObjectFactory1::ConvertHDPhotoToJpegXR method (xpsobjectmodel_1.h)

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

Syntax

HRESULT ConvertHDPhotoToJpegXR(
  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_WDP.

E_INVALIDARG: The image resource is not recognized by the WDP decoder or another general error occurred.

Remarks

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

Requirements

Requirement Value
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