Creates and inserts a new image which is anchored to the specified text position. It has the specified horizontal alignment and a textflow which is given through the insertion
<void> ImageCollection.addAnchored(<string> imageData, <HorizontalAlignment> horizontalAlignment, <number> textPosition, <ImageInsertionMode> insertionMode, [<RequestImageCallback> callback], [<ErrorCallback> errorCallback])
Parameter | Description |
---|---|
image |
The base64 encoded image data. |
horizontal |
Specifies the image's horizontal alignment. |
text |
Specifies the text position at which the image is to be inserted. If -1 is specified, the image is inserted at the current input position. |
insertion |
Specifies how the text flow is handled. |
callback | Optional. The newly created image object is returned via this callback function. |
error |
Optional. Is called when the operation failed with an error. |