Professional Documents
Culture Documents
Solution
2. Determine the shape you want to convert the selected item to, such as line, oval, rectangle, or
polygon.
To convert to a polygon, you also need to determine the number of edges and star inset of the
polygon.
To convert to a rectangle, you also may choose the corner effects you want to apply.
NOTE: IConvertShapeSuite has additional methods for connecting path points; however, these methods
are not tested.
Sample code
SnpManipulatePathandGraphics.cpp
Related APIs
IConvertShapeSuite
Solution
Use the kImportAndLoadPlaceGunCmdBoss command to import the file and load the place gun, so the
end user can place the item in the spread:
1. Create kImportAndLoadPlaceGunCmdBoss.
2. Query IImportResourceCmdData on the command and set the command data, including the
IDataBase of the document, the IDFile of the graphics file, and the UI flag.
NOTE: Generally, the process for importing a graphics file is the same as for importing other types of assets,
like text.