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
tablenamestringThe 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.
urlpathstringThe path from which the image will be loaded or the Data URL defining the image.
insertionPtobjectA 3 dimensional array that defines the position the image will be inserted.
scaledoubleThe image's scale.
rotationdoubleThe image's rotation.
drawitboolDefines if the vdImage object will be drawn after inserted to the document.
entitiesobjectThe 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.