%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
AddImage Method
See Also 
vdWebLibrary Namespace > vdrawObj Class : AddImage Method
tablename
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
The path from which the image will be loaded or the Data URL defining the image.
insertionPt
A 3 dimensional array that defines the position the image will be inserted.
scale
The image's scale.
rotation
The image's rotation.
drawit
Defines if the vdImage object will be drawn after inserted to the document.
entities
The entities collection where the image will be added. This can be the entities of layout or a block.
Adds a new vdImage in the document.

Syntax

JScript 
public function AddImage( 
   tablename : String,
   urlpath : String,
   insertionPt : Object,
   scale : double,
   rotation : double,
   drawit : boolean,
   entities : Object
) : Object;

Parameters

tablename
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
The path from which the image will be loaded or the Data URL defining the image.
insertionPt
A 3 dimensional array that defines the position the image will be inserted.
scale
The image's scale.
rotation
The image's rotation.
drawit
Defines if the vdImage object will be drawn after inserted to the document.
entities
The entities collection where the image will be added. This can be the entities of layout or a block.

Return Value

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

See Also