LEADTOOLS Annotations (Leadtools.Annotations assembly)

Load(Stream,AnnContainer,Int32) Method

Show in webframe





The System.IO.Stream from which to load the objects.
An AnnContainer into which to load the objects.
1-based page number to load.
Loads the annotation objects from a stream.
Syntax
public void Load( 
   Stream stream,
   AnnContainer container,
   int page
)
'Declaration
 
Public Overloads Sub Load( _
   ByVal stream As Stream, _
   ByVal container As AnnContainer, _
   ByVal page As Integer _
) 
'Usage
 
Dim instance As AnnCodecs
Dim stream As Stream
Dim container As AnnContainer
Dim page As Integer
 
instance.Load(stream, container, page)

            

            
public:
void Load( 
   Stream^ stream,
   AnnContainer^ container,
   int page
) 

Parameters

stream
The System.IO.Stream from which to load the objects.
container
An AnnContainer into which to load the objects.
page
1-based page number to load.
Remarks

This method will not remove any existing objects in the container, so if you are re-using an existing collection to load the annotation objects into, make sure to call RasterCollection<AnnObject>.Clear on the collection before you call this method.

This method will not position the stream back to its original position before it returns. It is your responsibility to position the stream back before you can load another page from this stream.

To load multiple containers from a multi-page stream using one method, use Load(Stream).

For more information, refer to Annotation Files.

Example
For an example, refer to Save(String,AnnContainer,AnnCodecsFormat,Int32,AnnCodecsSavePageMode).
Requirements

Target Platforms

See Also

Reference

AnnCodecs Class
AnnCodecs Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.