public enum LEADResourceDirectory
typedef NS_ENUM(NSInteger, LTLEADResourceDirectory) {
LTLEADResourceDirectoryLibraries,
LTLEADResourceDirectoryFonts,
};
public final class LEADResourceDirectory
extends java.lang.Enum<LEADResourceDirectory>
public enum class LEADResourceDirectory
class LEADResourceDirectory(Enum):
Libraries = 0
Fonts = 1
OpenSSL = 2
LibreOffice = 3
Value | Member | Description |
---|---|---|
0 | Libraries | Indicates the directory for the LEADTOOLS runtime libraries. |
1 | Fonts | Indicates the directory for font files to be used by LEADTOOLS. |
2 | OpenSSL | Indicates the directory for OpenSSL files to be used by LEADTOOLS. |
3 | LibreOffice | Indicates the LibreOffice installation directory to be used by LEADTOOLS for loading Open Document Format (ODF) files. |
Some LEADTOOLS classes will use a common resource directory at runtime. Use SetResourceDirectory to set the path to the desired resource directory.
Refer to LEADTOOLS Drawing Engine and Multi-Platform Consideration for more information on shadow font usage.
The LEADResourceDirectory.LibreOffice
path should point to the root of the LibreOffice installation. For example, on Windows, LibreOffice programs might get installed to C:\Program Files\LibreOffice\program
. In this case, set LEADResourceDirectory.LibreOffice
to the parent of the program subfolder, C:\Program Files\LibreOffice
. By following this approach, LEADTOOLS can locate the LibreOffice installation at C:\Program Files\LibreOffice
on Windows and /usr/lib/libreoffice
on Linux.
using Leadtools;
using Leadtools.Codecs;
private void RasterDefaultsSetResourceDirectoryExample()
{
// Set the Fonts Resource folder
RasterDefaults.SetResourceDirectory(LEADResourceDirectory.Fonts, @"SomeCommonFontsFolder");
}
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
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.*;
import leadtools.codecs.*;
public void RasterDefaultsSetResourceDirectoryExample() {
// Set the Fonts Resource folder
RasterDefaults.setResourceDirectory(LEADResourceDirectory.FONTS,
"C:\\Users\\Username\\AppData\\Local\\Microsoft\\Windows\\Fonts");
}
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.