Table of Contents

Method AddImage

Namespace
vdWebLibrary
Assembly
JsPropertiesExtractor.dll

AddImage(string, string, object, double, double, bool, object)

Adds a new vdImage in the document.

public object AddImage(string tablename, string urlpath, object insertionPt, double scale, double rotation, bool drawit, object entities)

Parameters

tablename string

The name the object will have in the images collection of the document. If the table name already exists in the collection the existing image will be used.

urlpath string

The path from which the image will be loaded or the Data URL defining the image.

insertionPt object

A 3 dimensional array that defines the position the image will be inserted.

scale double

The image's scale.

rotation double

The image's rotation.

drawit bool

Defines if the vdImage object will be drawn after inserted to the document.

entities object

The entities collection where the image will be added. This can be the entities of layout or a block.

Returns

object

The inserted vdImage object, either the created one or the one contained in the collection.