ImageGear .NET
LoadPage(ImGearPage) Method
Example 




Page to load marks from.
Loads ART marks from ImageGear.Core.ImGearPage class.
Syntax
'Declaration
 
Public Overloads Shared Function LoadPage( _
   ByVal page As ImGearPage _
) As ImGearARTPage
'Usage
 
Dim page As ImGearPage
Dim value As ImGearARTPage
 
value = ImGearART.LoadPage(page)
public static ImGearARTPage LoadPage( 
   ImGearPage page
)
public: static ImGearARTPage* LoadPage( 
   ImGearPage* page
) 
public:
static ImGearARTPage^ LoadPage( 
   ImGearPage^ page
) 

Parameters

page
Page to load marks from.

Return Value

Remarks
This method can be used to load ART marks from TIF or PDF page.
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;
Dim igPage As ImGearPage
' Load an image containing embedded ART 2.0 annotations into a ImGearPage object
Using localFile As New FileStream("test1_art.tif", FileMode.Open)
    igPage = ImGearFileFormats.LoadPage(localFile, 0)
End Using
' Load the ImGearARTPage from the metadata in the ImGearPage.
Dim igARTPage As ImGearARTPage = ImGearART.LoadPage(igPage)
' Burn the annotations into the image.
igPage = ImGearART.BurnIn(igPage, igARTPage, ImGearARTBurnInOptions.ALL, Nothing)
ImGearPageView1.Page = igPage
' Clear the annotations from the art page.
igARTPage.RemoveMarks()
' Update the Display with the new ARTPage.
If igARTPage IsNot Nothing Then
    ImGearPageView1.Display.ARTPage = igARTPage
End If
See Also

Reference

ImGearART Class
ImGearART Members
Overload List
ImGearARTPage Class
ImGearPage Class

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback