public static RasterKernelType KernelType { get; }
+ (LTRasterKernelType)kernelType
public static RasterKernelType getKernelType();
public:
static property RasterKernelType KernelType {
RasterKernelType get();
}
KernelType # get (RasterSupport)
A RasterKernelType enumeration member indicating the LEADTOOLS kernel type.
The following table describes the types of LEADTOOLS kernels:
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. |
LEADTOOLS Kernel DLL has a dynamic runtime dependency on SQLite that is only needed when using a LEADTOOLS Runtime License that enables Local Use-based Logging.
Operating System | Platforms | Runtime Kernel Dependency | Kernel Dependency Installation | |
---|---|---|---|---|
Windows | C DLL | ltsqlite?.dll |
Installed with LEADTOOLS | |
.NET Framework | ||||
.NET 6+ | ||||
Java | ||||
Javascript | ||||
Python | ||||
Xamarin | ||||
MAUI | ||||
Linux | C\C++ | libsqlite3.so.0 |
Installed by the user | |
.NET 6+ | ||||
Java | ||||
Javascript | ||||
Python | ||||
Xamarin | ||||
macOS | Xcode | libsqlite3.dylib |
Installed by the user | |
.NET 6+ | ||||
Java | ||||
Javascript | ||||
Python | ||||
Xamarin | ||||
MAUI |
This example will check the LEADTOOLS kernel type and whether it has expired
using Leadtools;
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;
}
}
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Paths;
import org.junit.*;
import org.junit.Test;
import org.junit.runner.JUnitCore;
import org.junit.runner.Result;
import org.junit.runner.notification.Failure;
import static org.junit.Assert.*;
import leadtools.*;
public void kernelExpiredExample() throws IOException {
Platform.setLibPath("C:\\LEADTOOLS23\\Bin\\CDLL\\x64");
Platform.loadLibrary(LTLibrary.LEADTOOLS);
final String licensePath = "C:\\LEADTOOLS23\\Support\\Common\\License\\LEADTOOLS.LIC";
final String myDevKey = Files.readString(Paths.get(licensePath + ".KEY"));
RasterSupport.setLicense(licensePath, myDevKey);
switch (RasterSupport.getKernelType()) {
case RELEASE:
assertTrue("Kernel is not the release version.", RasterSupport.getKernelType() == RasterKernelType.RELEASE);
System.out.println("Kernel is the release version.");
break;
case EVALUATION:
assertTrue("Kernel is not a release or evaluation version.", RasterSupport.getKernelType() == RasterKernelType.EVALUATION);
System.out.println("Kernel is the evaluation version.");
System.out.print(RasterSupport.getKernelExpired());
assertTrue("Kernel has expired.", !RasterSupport.getKernelExpired());
System.out.println("Evaluation kernel has not expired yet.");
break;
default:
System.out.println("Kernel is neither a release nor evaluation version. Something is likely wrong with the provided path.");
}
}
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
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.