←Select platform

GetResourceDirectory Method

Summary
Gets the path for the specified LEADTOOLS resource directory.
Syntax
C#
C++/CLI
Java
Python
public static string GetResourceDirectory( 
   LEADResourceDirectory resource 
) 
public static java.lang.String getResourceDirectory( 
   LEADResourceDirectory resource 
); 
public void setResourceDirectory( 
   LEADResourceDirectory lEADResourceDirectory, 
   java.lang.String string 
); 
public: 
static String^ GetResourceDirectory(  
   LEADResourceDirectory resource 
)  
def GetResourceDirectory(self,resource): 

Parameters

resource
The LEADTOOLS resource directory to get.

Return Value

The path for the specified LEADTOOLS resource directory.

Remarks

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.

Example
C#
Java
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"); 
} 
Requirements

Target Platforms

Help Version 23.0.2024.5.22
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.