GetImagePartURL

Description

Get the internal url of an image in buffer specified by index .

Syntax

.GetImagePartURL(index, [optional iWidth, optional iHeight]);

Parameters

<int> index: specifies the index of image in buffer. The index is 0-based.
optional<int> iWidth: specifies the new width.
optional<int> iHeight: specifies the new height.

Return value

<string>

When an error occurs, check ErrorCode or ErrorString for error information.

Remarks

This method is valid only in HTML5 Edtion, the returned URL will be like "dwt://dwt_trial_13000404/img?id=306159652&index=0&t=1502184632022".  If iWidth and iHeight are not specified, the original image will be returned.

The lowest limit for iWidth and iHeight is 150.

Is this page helpful?

Leave a Reply

Your email address will not be published.