|
Add_Picture (Method)
This function inserts picture file(s) (.BMP, .ICO, .GIF and .JPG) into the drawing
Syntax:
Function Add_Picture(sPictureFiles() As String, xMin As Single, yMin As Single, xMax As Single, yMax As Single, zOrder As Integer, vItemProperties As Object, iLayer As Short, nMapMode As Integer) As Integer
The Add_Picture method syntax consists of the following:
Parameter
|
Data Type
|
Description
|
sPictureFiles()
|
String
|
An array of Strings for the names of the picture files
|
xMin
|
Single
|
Is the buttom left x cordinate of the window in which all the picture files appear
|
yMin
|
Single
|
Is the buttom left y cordinate of the window in which all the picture files appear
|
xMax
|
Single
|
Is the top right x cordinate of the window in which all the picture files appear
|
yMax
|
Single
|
Is the top right y cordinate of the window in which all the picture files appear
|
zOrder
|
Integer
|
Is the object's elevation in the whole drawing
|
vItemProperties
|
Object
|
Is a string array with properties for the new object
|
iLayer
|
Short
|
Is the layer number
|
nMapMode
|
Integer
|
Is the API's mapmode
|
Return value:
Integer - An Avax handle on success, zero on error.
Remarks:
If you add more than one picture then you will have an animation object
Example
|