ImageGear for .NET
LoadPage(Stream,Int32) Method
See Also  Example Send Feedback
ImageGear21.Art Assembly > ImageGear.ART Namespace > ImGearART Class > LoadPage Method : LoadPage(Stream,Int32) Method




stream
Stream from which to load marks. The LoadPage method works from the current stream position, so if you are indexing pages from the beginning of the multi-page annotations file, you need to reset the stream position to the beginning.
pageNumber
Zero-based page number. First page is 0.

Glossary Item Box

Loads ART marks from a stream.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

stream
Stream from which to load marks. The LoadPage method works from the current stream position, so if you are indexing pages from the beginning of the multi-page annotations file, you need to reset the stream position to the beginning.
pageNumber
Zero-based page number. First page is 0.

Return Value

ImGearARTPage class.

Remarks

This method loads annotation marks from an XML stream.

This method can also be used to load ART 2.0 marks from the binary ART format.

Example

C#Copy Code
// Load first page of ART data from an ART file.
ImGearARTPage igARTPageNew;
using (FileStream localFile = new FileStream("test.xml", FileMode.Open))
    igARTPageNew = ImGearART.LoadPage(localFile, 0);
// Update display with new page.
igPageView.Display.ARTPage = igARTPageNew;
Visual BasicCopy Code
' Load first page of ART data from an ART file.
Dim igARTPageNew As ImGearARTPage
Using localFile As New FileStream("test.xml", FileMode.Open)
    igARTPageNew = ImGearART.LoadPage(localFile, 0)
End Using
' Update display with new page.
igPageView.Display.ARTPage = igARTPageNew

See Also

©2013. Accusoft Corporation. All Rights Reserved.