Creates a shape that contains the picture from the specified file and places it onto the page / into the group at the specified position. Returns a Shape object that corresponds to the created shape.
Applies to: Page object, Shape object
[[Set] shapeRet =] object.InsertPicture ( fileName, xInsert, yInsert ) |
The InsertPicture method syntax has these parts:
Part | Description |
object | Required. An expression that returns an object in the Applies to list. |
fileName | Required. An expression that returns a String value. Full or relative path to the file that contains the image in a format that ConceptDraw can import. |
xInsert | Required. An expression that returns a Double value. The X-coordinate of the rotation center (the GPinX property) for the created shape. |
yInsert | Required. An expression that returns a Double value. The Y-coordinate of the rotation center (the GPinY property) for the created shape. |
shapeRet | Optional. A Shape type variable. |
If the file with the specified fileName hasn't been found or couldn't be opened, the InsertPicture method doesn't create a new shape and returns Nothing.
See Also |
GPinX property, GPinY property, Import/Export constants |