Gets the type of the LEADTOOLS kernel.
public static RasterKernelType KernelType { get; } Public Shared ReadOnly Property KernelType As RasterKernelType + (LTRasterKernelType)kernelType public static RasterKernelType getKernelType() public:static property RasterKernelType KernelType {RasterKernelType get();}
Aa RasterKernelType enumeration member indicating the LEADTOOLS kernel type.
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 [email protected]. |
| Evaluation | This is the Evaluation kernel, which has all features unlocked, but displays an "eval" message during execution. This kernel will also expire. |
This example will check the LEADTOOLS kernel type and whether it has expired
using Leadtools;using Leadtools.Codecs;using Leadtools.ImageProcessing;public void LeadtoolsKernelExample(){// show current kernelswitch (RasterSupport.KernelType){case RasterKernelType.Release:Console.WriteLine("Release kernel");break;case RasterKernelType.Evaluation:Console.WriteLine("Evaluation kernel");// show if the kernel has expiredif (RasterSupport.KernelExpired)Console.WriteLine("Evaluation kernel has expired");elseConsole.WriteLine("Evaluation kernel has not expired yet");break;}}
Imports LeadtoolsImports Leadtools.CodecsImports Leadtools.ImageProcessingPublic Sub LeadtoolsKernelExample()' show current kernelSelect Case RasterSupport.KernelTypeCase RasterKernelType.ReleaseConsole.WriteLine("Release kernel")Case RasterKernelType.EvaluationConsole.WriteLine("Evaluation kernel")' show if the kernel has expiredIf RasterSupport.KernelExpired ThenConsole.WriteLine("Evaluation kernel has expired")ElseConsole.WriteLine("Evaluation kernel has not expired yet")End IfEnd SelectEnd Sub
c#[Silverlight C# Example]using Leadtools;using Leadtools.ImageProcessing;public void LeadtoolsKernelExample(){// show current kernelswitch (RasterSupport.KernelType){case RasterKernelType.Release:Console.WriteLine("Release kernel");break;case RasterKernelType.Evaluation:Console.WriteLine("Evaluation kernel");// show if the kernel has expiredif (RasterSupport.KernelExpired)Console.WriteLine("Evaluation kernel has expired");elseConsole.WriteLine("Evaluation kernel has not expired yet");break;}}vb[Silverlight VB Example]Imports LeadtoolsImports Leadtools.ImageProcessingPublic Sub LeadtoolsKernelExample()' show current kernelSelect Case RasterSupport.KernelTypeCase RasterKernelType.ReleaseConsole.WriteLine("Release kernel")Case RasterKernelType.EvaluationConsole.WriteLine("Evaluation kernel")' show if the kernel has expiredIf RasterSupport.KernelExpired ThenConsole.WriteLine("Evaluation kernel has expired")ElseConsole.WriteLine("Evaluation kernel has not expired yet")End IfEnd SelectEnd Sub
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
