public static class RasterSupport @interface LTRasterSupport : NSObject public final class RasterSupport public ref class RasterSupport abstract sealed class RasterSupport: For more information, refer to Unlocking Special LEAD Features.
This example will set a runtime license and check for Document support. You must obtain the proper license and developer key from LEAD.
using Leadtools;public void SetLicenseFileExample(){#if DEBUGLicenseSupport.SetLicense();#elsestring MY_LICENSE_FILE = @"leadtools.lic";string MY_DEVELOPER_KEY = "xyz123abc";RasterSupport.SetLicense(MY_LICENSE_FILE, MY_DEVELOPER_KEY);#endifbool isLocked = RasterSupport.IsLocked(RasterSupportType.Document);if (isLocked)Console.WriteLine("Document support is locked");elseConsole.WriteLine("Document support is unlocked");}
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 setLicenseExample() throws IOException {Platform.setLibPath("C:\\LEADTOOLS23\\Bin\\CDLL\\x64");Platform.loadLibrary(LTLibrary.LEADTOOLS);Platform.loadLibrary(LTLibrary.CODECS);final String licensePath = "C:\\LEADTOOLS23\\Support\\Common\\License\\LEADTOOLS.LIC";final String myDevKey = Files.readString(Paths.get(licensePath + ".KEY"));RasterSupport.setLicense(licensePath, myDevKey);boolean isLocked = RasterSupport.isLocked(RasterSupportType.DOCUMENT);assertTrue("Document support is locked.", !isLocked);System.out.println("Document support is unlocked.");}
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
