LEADTOOLS (Leadtools assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
SetData Method
See Also 
Leadtools Namespace > RasterRegion Class : SetData Method



data
An array of System.Byte that represents the information that describes a RasterRegion.
data
An array of System.Byte that represents the information that describes a RasterRegion.
Ovrrides the data of this RasterRegion from an array of System.Byte. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Sub SetData( _
   ByVal data() As Byte _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterRegion
Dim data() As Byte
 
instance.SetData(data)
C# 
public void SetData( 
   byte[] data
)
C++/CLI 
public:
void SetData( 
   array<byte>^ data
) 

Parameters

data
An array of System.Byte that represents the information that describes a RasterRegion.

Example

For an example, refer to GetData.

Remarks

You can use the GetData and SetData methods to save and load the content of a region to disk or memory.

If data is an array of 0 items or is null (Nothing in Visual Basic), then this method will make the RasterRegion object empty. This is the equivalant of calling MakeEmpty.

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only), Windows Phone 7

See Also