Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
RasterImage Constructor(SerializationInfo,StreamingContext)
See Also 
Leadtools Namespace > RasterImage Class > RasterImage Constructor : RasterImage Constructor(SerializationInfo,StreamingContext)




info
The data needed to serialize or deserialize an object.
context
The source and destination of a given serialized stream.
This constructor is required by ISerializable.

Syntax

Visual Basic (Declaration) 
Protected Function New( _
   ByVal info As SerializationInfo, _
   ByVal context As StreamingContext _
)
Visual Basic (Usage)Copy Code
Dim info As SerializationInfo
Dim context As StreamingContext
 
Dim instance As RasterImage(info, context)
C# 
protected RasterImage( 
   SerializationInfo info,
   StreamingContext context
)
Managed Extensions for C++ 
protected: RasterImage( 
   SerializationInfo* info,
   StreamingContext context
)
C++/CLI 
protected:
RasterImage( 
   SerializationInfo^ info,
   StreamingContext context
)

Parameters

info
The data needed to serialize or deserialize an object.
context
The source and destination of a given serialized stream.

Remarks

The RasterImage class supports standard .NET serialization. Serialization of a RasterImage is the process of converting the state of a RasterImage object into a form that can be persisted or transported. The complement of serialization is deserialization, which converts a stream into an RasterImage object. Together, these processes allow the image data to be easily stored and transferred.

When you serialize an RasterImage object, all the data inside the object are saved. This includes the image data of all pages as well as the current page number, region information, low bit/high bit, palette data, metadata (tags, markers and comments), etc. In other words, the RasterImage can be constructed back to its original state from the stream.

For more information and examples regarding serialization of an RasterImage object, refer to RasterImage Serialization.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also