Freigeben über


IXpsOMObjectFactory1::ConvertJpegXRToHDPhoto method

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

Syntax

HRESULT ConvertJpegXRToHDPhoto(
   [in, out] 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 | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

XpsObjectModel_1.h

IDL

XpsObjectModel.idl

Library

None

See also

IXpsOMObjectFactory1