ImageGear23.Art Assembly > ImageGear.ART Namespace > ImGearART Class > LoadPage Method : LoadPage(Stream,Int32) Method |
'Declaration Public Overloads Shared Function LoadPage( _ ByVal stream As Stream, _ ByVal pageNumber As Integer _ ) As ImGearARTPage
'Usage Dim stream As Stream Dim pageNumber As Integer Dim value As ImGearARTPage value = ImGearART.LoadPage(stream, pageNumber)
public static ImGearARTPage LoadPage( Stream stream, int pageNumber )
public: static ImGearARTPage* LoadPage( Stream* stream, int pageNumber )
public: static ImGearARTPage^ LoadPage( Stream^ stream, int pageNumber )
This method can also be used to load ART 2.0 marks from the binary ART format.
// 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;
' 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