←Select platform

RasterSupport Class

Summary
The RasterSupport class provides methods for setting a LEADTOOLS runtime license and unlocking support for optional LEADTOOLS features, such as LEADTOOLS Document/Medical capabilities. For activating server licenses, see Activating Server Licenses.
Syntax
C#
VB
Objective-C
C++
Java
public static class RasterSupport 
Public MustInherit NotInheritable Class RasterSupport  
@interface LTRasterSupport : NSObject 
public final class RasterSupport  
public ref class RasterSupport abstract sealed  
Remarks

For more information, refer to Unlocking Special LEAD Features.

Example

This example will set a runtime license and check for Document support. You must obtain the proper license and developer key from LEAD.

C#
VB
using Leadtools; 
 
 
public void SetLicenseFileExample() 
{ 
#if DEBUG 
	LicenseSupport.SetLicense(); 
#else 
	string MY_LICENSE_FILE = @"leadtools.lic"; 
	string MY_DEVELOPER_KEY = "xyz123abc"; 
	RasterSupport.SetLicense(MY_LICENSE_FILE, MY_DEVELOPER_KEY); 
#endif 
	bool isLocked = RasterSupport.IsLocked(RasterSupportType.Document); 
	if (isLocked) 
		Console.WriteLine("Document support is locked"); 
	else 
		Console.WriteLine("Document support is unlocked"); 
} 
Imports Leadtools 
Imports Leadtools.Codecs 
Imports Leadtools.ImageProcessing 
 
Dim MY_LICENSE_FILE As String = "d:\\lead15\\lic\\20\\leadtools.lic" 
Dim MY_DEVELOPER_KEY As String = "xyz123abc" 
Public Sub SetLicenseFileExample() 
   RasterSupport.SetLicense(MY_LICENSE_FILE, MY_DEVELOPER_KEY) 
   Dim isLocked As Boolean = RasterSupport.IsLocked(RasterSupportType.Document) 
   If (isLocked) Then 
      Console.WriteLine("Document support is locked") 
   Else 
      Console.WriteLine("Document support is unlocked") 
   End If 
End Sub 
Requirements

Target Platforms

Help Version 21.0.2021.4.8
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly