ImageGear Professional v18.2 > User Guide > Using ImageGear > Using ImageGear ARTX Component > Working with ART Marks > Creating a Mark via Function Calls |
Some applications won't use the ART ToolBar, or will provide the ToolBar and other options for creating marks. In that case, a function in your application will need to create the marks directly. ART marks are created by using their objects. For example, a rectangle mark can be created as follows:
Copy Code
|
|
---|---|
Dim rectMark As IGArtXRectangle Set rectMark = IGArtXCtl1.CreateRectangle(igRect, FillColor, border, Opacity) |
Once it is created, it should be added to the ART page:
Copy Code
|
|
---|---|
IGArtXPage.AddMark(Mark, enumIGArtXCoordType.CoordType); |
Mark properties can be edited at any time:
Copy Code
|
|
---|---|
IGArtRectangle.Opacity = 128; |