Inserts a raster Referenced image.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function InsertPicture( _
const dsString& PathName As System.String, _
double InsertX As System.Double, _
double InsertY As System.Double, _
double InsertZ As System.Double, _
double Scale As System.Double, _
double Rotation As System.Double _
) As ReferenceImage |
Parameters
- PathName
- Path and file name of the Referenced image to insert
- InsertX
- x coordinate where to insert the Referenced image
- InsertY
- y coordinate where to insert the Referenced image
- InsertZ
- z coordinate where to insert the Referenced image
- Scale
- Scale factor for each axis
- Rotation
- Angle by which to rotate the Referenced image (see Remarks)
- Pic[out] or Return Value
- Referenced image
Example
This code snippet shows how to insert a Referenced image.
COM native C++
bstr_t imageFileName ( L"<path_and file_name_of_image>" );
double insertX = 0, insertY = 0, insertZ = 0, scale = 1, rotation = 0;
ReferenceImagePtr imageEntity = sketchMgr->InsertPicture( imageFileName, insertX, insertY, insertZ, scale, rotation );
Example
Remarks
See Also
Availability
DraftSight V1R1