Back to Devexpress

IUriProvider.CreateImageUri(String, OfficeImage, String) Method

officefileapi-devexpress-dot-office-dot-services-dot-iuriprovider-dot-createimageuri-x28-system-dot-string-devexpress-dot-office-dot-utils-dot-officeimage-system-dot-string-x29.md

latest2.2 KB
Original Source

IUriProvider.CreateImageUri(String, OfficeImage, String) Method

Creates an image URI.

Namespace : DevExpress.Office.Services

Assembly : DevExpress.Office.v25.2.Core.dll

NuGet Package : DevExpress.Office.Core

Declaration

csharp
string CreateImageUri(
    string rootUri,
    OfficeImage image,
    string relativeUri
)
vb
Function CreateImageUri(
    rootUri As String,
    image As OfficeImage,
    relativeUri As String
) As String

Parameters

NameTypeDescription
rootUriString

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

TypeDescription
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

See Also

IUriProvider Interface

IUriProvider Members

DevExpress.Office.Services Namespace