LEADTOOLS (Leadtools assembly)
LEAD Technologies, Inc

KernelType Property

Example 





Gets the type of the LEADTOOLS kernel. .NET support Silverlight support WinRT support
Syntax
public static RasterKernelType KernelType {get;}
'Declaration
 
Public Shared ReadOnly Property KernelType As RasterKernelType
'Usage
 
Dim value As RasterKernelType
 
value = RasterSupport.KernelType
public static RasterKernelType KernelType {get;}
 get_KernelType(); 
public:
static property RasterKernelType KernelType {
   RasterKernelType get();
}

Property Value

Aa RasterKernelType enumeration member indicating the LEADTOOLS kernel type.
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.
Example
 
Public Sub LeadtoolsKernelExample()
   ' show current kernel
   Select Case RasterSupport.KernelType
      Case RasterKernelType.Release
         Console.WriteLine("Release 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
public void LeadtoolsKernelExample()
{
   // show current kernel
   switch(RasterSupport.KernelType)
   {
      case RasterKernelType.Release:
         Console.WriteLine("Release 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;
   }
}
RasterSupportExamples.prototype.LeadtoolsKernelExample = function () {

    // show current kernel
    switch (Leadtools.RasterSupport.kernelType) {
        case Leadtools.RasterKernelType.release:
            console.info("Release kernel");
            break;

        case Leadtools.RasterKernelType.evaluation:
            console.info("Evaluation kernel");
            // show if the kernel has expired
            if (Leadtools.RasterSupport.kernelExpired)
                console.info("Evaluation kernel has expired");
            else
                console.info("Evaluation kernel has not expired yet");
            break;
    }
}
[TestMethod]
public void LeadtoolsKernelExample()
{
   // show current kernel
   switch(RasterSupport.KernelType)
   {
      case RasterKernelType.Release:
         Debug.WriteLine("Release kernel");
         break;
      case RasterKernelType.Evaluation:
         Debug.WriteLine("Evaluation kernel");
         // show if the kernel has expired
         if(RasterSupport.KernelExpired)
            Debug.WriteLine("Evaluation kernel has expired");
         else
            Debug.WriteLine("Evaluation kernel has not expired yet");
         break;
   }
}
public void LeadtoolsKernelExample()
{
   // show current kernel
   switch(RasterSupport.KernelType)
   {
      case RasterKernelType.Release:
         Console.WriteLine("Release 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;
   }
}
<TestMethod> _
Public Sub LeadtoolsKernelExample()
   ' show current kernel
   Select Case RasterSupport.KernelType
      Case RasterKernelType.Release
         Console.WriteLine("Release 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
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterSupport Class
RasterSupport Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.