Inserts a raster Referenced image.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function InsertPicture( _
BSTR 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 |
COM native C++ | |
---|
HRESULT InsertPicture(
const dsString& PathName,
,
double InsertX,
,
double InsertY,
,
double InsertZ,
,
double Scale,
,
double Rotation
,
IReferenceImage** Pic
) |
C++ | |
---|
DSRESULT InsertPicture(
BSTR PathName,
,
DOUBLE InsertX,
,
DOUBLE InsertY,
,
DOUBLE InsertZ,
,
DOUBLE Scale,
,
DOUBLE Rotation
,
dsReferenceImage** Pic
) |
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)
Parameters
- 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