Creates a picture from an existing file.
'Declaration
Function AddPicture( _
ByVal As String, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal As Double, _
ByVal As Double, _
Optional ByVal As Double, _
Optional ByVal As Double _
) As IShape
'Usage
Dim instance As IShapes
Dim fileName As String
Dim linkToFile As Boolean
Dim saveWithDocument As Boolean
Dim x As Double
Dim y As Double
Dim width As Double
Dim height As Double
Dim value As IShape
value = instance.AddPicture(fileName, linkToFile, saveWithDocument, x, y, width, height)
Parameters
- fileName
- The file from which the picture is to be created.
- linkToFile
- The file to link to.
- saveWithDocument
- To save the picture with the document.
- x
- The position (in pixels) of the upper-left corner of the picture relative to the upper-left corner of the document.
- y
- The position (in pixels) of the upper-left corner of the picture relative to the upper-left corner of the document.
- width
- The width of the picture, in pixels.
- height
- The height of the picture, in pixels.
Return Value
The new picture.