Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

IUriProvider.CreateImageUri(String, OfficeImage, String) Method

Creates an image URI.

Namespace: DevExpress.Office.Services

Assembly: DevExpress.Office.v19.1.Core.dll

Declaration

string CreateImageUri(
    string rootUri,
    OfficeImage image,
    string relativeUri
)

Parameters

Name Type Description
rootUri String

A string that specifies the root URI.

image OfficeImage

An OfficeImage object for which the URI is created.

relativeUri String

A string that specifies the relative part of the URI (path relative to the root).

Returns

Type Description
String

A string that is the image URI.

Remarks

Implement the CreateImageUri method to supply an URI that is specific to the export type. Built-in URI providers return URI strings in the following forms:

  • file://<path>/image<NN>.png for the file based URI provider (HTML export), where NN is the index of an image on the page.
  • data:<MIME-type>base64,<a string of data in base64 format>“ for the HTML export using embedded images

The following code snippets (auto-collected from DevExpress Examples) contain references to the CreateImageUri(String, OfficeImage, String) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also