ImageGear .NET - Updated May 30, 2018
RemoveMarks() Method
Example 




ImageGear24.Art Assembly > ImageGear.ART Namespace > ImGearARTPage Class > RemoveMarks Method : RemoveMarks() Method
Deletes all marks from the annotation page.
Syntax
'Declaration
 
Public Overloads Sub RemoveMarks() 
 
'Usage
 
Dim instance As ImGearARTPage
 
instance.RemoveMarks()
Remarks
The method also deletes all Groups groups of the annotation page and resets following properties to their default values:
Example
ImGearPage igPage;
// Load an image containing embedded ART 2.0 annotations into a ImGearPage object
using (FileStream localFile = new FileStream("test1_art.tif", FileMode.Open))
    igPage = ImGearFileFormats.LoadPage(localFile, 0);
// Load the ImGearARTPage from the metadata in the ImGearPage.
ImGearARTPage igARTPage = ImGearART.LoadPage(igPage);
// Burn the annotations into the image.
igPage = ImGearART.BurnIn(igPage, igARTPage, ImGearARTBurnInOptions.ALL, null);
imGearPageView1.Page = igPage;
// Clear the annotations from the art page.
igARTPage.RemoveMarks();
// Update the Display with the new ARTPage.
if (igARTPage != null)
    imGearPageView1.Display.ARTPage = igARTPage;
See Also

Reference

ImGearARTPage Class
ImGearARTPage Members
Overload List