ImageGear Professional DLL v17.1 for Windows Accusoft
Creating a Mark via Function Calls
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > User Guide > Using ImageGear > Annotating Images > New Annotation API: ArtX > Working with ART Marks > Creating a Mark via Function Calls

Glossary Item Box

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 can be created as follows:

  Copy Code
IG_ARTX_rectangle_create(pRectangle, pFillColor, pBorder, nOpacity, &hRectMark);

Once it is created, it should be added to the ART page:

  Copy Code
IG_ARTX_page_mark_add(hArtPage, hRectMark, nCoordType, &hRectMark);

Mark properties can be edited at any time:

  Copy Code
IG_ARTX_rectangle_opacity_set(_hRectMark, 128);
©2012. Accusoft Corporation. All Rights Reserved.