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



Gets the type of the LEADTOOLS kernel. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Shared ReadOnly Property KernelType As RasterKernelType
Visual Basic (Usage)Copy Code
Dim value As RasterKernelType
 
value = RasterSupport.KernelType
C# 
public static RasterKernelType KernelType {get;}
C++/CLI 
public:
static property RasterKernelType KernelType {
   RasterKernelType get();
}

Property Value

Aa RasterKernelType enumeration member indicating the LEADTOOLS kernel type.

Example

This example will check the LEADTOOLS kernel type and whether it has expired

Visual BasicCopy Code
Public Sub LeadtoolsKernelExample()
   ' show current kernel
   Select Case RasterSupport.KernelType
      Case RasterKernelType.Release
         Console.WriteLine("Release kernel")

      Case RasterKernelType.Nag
         Console.WriteLine("Nag kernel")

      Case RasterKernelType.Evaluation
         Console.WriteLine("Evaluation kernel")
         ' show if the kernel has expired
         If RasterSupport.KernelExpired Then
            Console.WriteLine("Evaluation kernel has expired")
         Else
            Console.WriteLine("Evaluation kernel has not expired yet")
         End If
   End Select
End Sub
C#Copy Code
public void LeadtoolsKernelExample()
{
   // show current kernel
   switch(RasterSupport.KernelType)
   {
      case RasterKernelType.Release:
         Console.WriteLine("Release kernel");
         break;

      case RasterKernelType.Nag:
         Console.WriteLine("Nag kernel");
         break;

      case RasterKernelType.Evaluation:
         Console.WriteLine("Evaluation kernel");
         // show if the kernel has expired
         if(RasterSupport.KernelExpired)
            Console.WriteLine("Evaluation kernel has expired");
         else
            Console.WriteLine("Evaluation kernel has not expired yet");
         break;
   }
}
SilverlightCSharpCopy Code
[TestMethod]
public void LeadtoolsKernelExample()
{
   // show current kernel
   switch(RasterSupport.KernelType)
   {
      case RasterKernelType.Release:
         Console.WriteLine("Release kernel");
         break;
      case RasterKernelType.Nag:
         Console.WriteLine("Nag kernel");
         break;

      case RasterKernelType.Evaluation:
         Console.WriteLine("Evaluation kernel");
         // show if the kernel has expired
         if(RasterSupport.KernelExpired)
            Console.WriteLine("Evaluation kernel has expired");
         else
            Console.WriteLine("Evaluation kernel has not expired yet");
         break;
   }
}
SilverlightVBCopy Code
<TestMethod> _
Public Sub LeadtoolsKernelExample()
   ' show current kernel
   Select Case RasterSupport.KernelType
      Case RasterKernelType.Release
         Console.WriteLine("Release kernel")
      Case RasterKernelType.Nag
         Console.WriteLine("Nag kernel")

      Case RasterKernelType.Evaluation
         Console.WriteLine("Evaluation kernel")
         ' show if the kernel has expired
         If RasterSupport.KernelExpired Then
            Console.WriteLine("Evaluation kernel has expired")
         Else
            Console.WriteLine("Evaluation kernel has not expired yet")
         End If
   End Select
End Sub

Remarks

There are 3 types of LEADTOOLS kernels, as described in the following table:
Kernel Description
Release This is the Release kernel.
Nag This is a special build of the kernel, which has specialty features (such as Document Imaging and Medical Imaging) unlocked. This kernel is provided to Document and Medical imaging customers, and displays a "nag" message during execution. To remove the nag, you must sign a royalty agreement. For more information, contact sales@leadtools.com.
Evaluation This is the Evaluation kernel, which has all features unlocked, but displays an "eval" message during execution. This kernel will also expire.

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