Visual Basic
C#
Managed Extensions for C++
C++/CLI
The method also deletes all Groups groups of the annotation page and resets following properties to their default values:
C# | ![]() |
---|---|
ImGearPage igPage = _igPage; ImGearARTPage igArtPage; // Load the ImGearARTPage from the local file OpenFileDialog dlg = new OpenFileDialog(); if (dlg.ShowDialog() != true) return; using (FileStream file = dlg.File.OpenRead()) igArtPage = ImGearART.LoadPage(file, 0); // Create new presentation page display with default display settings. ImGearPresentationPageDisplay pageDisplay = new ImGearPresentationPageDisplay(); // Initialize presentation page display with image and annotations. pageDisplay.Page = igPage; pageDisplay.ARTPage = igArtPage; // Export presentation page display to ImGearRasterPage. ImGearRasterPage igNewPage = pageDisplay.Export(); pageView.Page = igNewPage; // Clear the annotations from the art page. igArtPage.RemoveMarks(); pageView.Update(); |
Visual Basic | ![]() |
---|---|
Dim igPage As ImGearPage Dim igArtPage As ImGearARTPage ' Load the ImGearARTPage from the local file Dim dlg As New OpenFileDialog() If dlg.ShowDialog() <> True Then Return End If Using file As FileStream = dlg.File.OpenRead() igArtPage = ImGearART.LoadPage(file, 0) End Using ' Create new presentation page display with default display settings. Dim pageDisplay As New ImGearPresentationPageDisplay() ' Initialize presentation page display with image and annotations. pageDisplay.Page = _igPage pageDisplay.ARTPage = igArtPage ' Export presentation page display to ImGearRasterPage. igPage = pageDisplay.Export() pageView.Page = igPage ' Clear the annotations from the art page. igArtPage.RemoveMarks() pageView.Update() |