←Select platform

SetResourceDirectory Method

Summary
Sets the path for the specified LEADTOOLS resource directory.
Syntax
C#
VB
C++
Java
public static void SetResourceDirectory( 
   LEADResourceDirectory resource, 
   string directory 
) 
Public Shared Sub SetResourceDirectory( _ 
   ByVal resource As LEADResourceDirectory, _ 
   ByVal directory As String _ 
)  
public static void setResourceDirectory(LEADResourceDirectory resource, String directory) 
public: 
static void SetResourceDirectory(  
   LEADResourceDirectory resource, 
   String^ directory 
)  

Parameters

resource
The resource directory to set.

directory
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#
VB
using Leadtools; 
using Leadtools.Codecs; 
 
 
private void RasterDefaultsSetResourceDirectoryExample() 
{ 
	// Set the Fonts Resource folder 
	RasterDefaults.SetResourceDirectory(LEADResourceDirectory.Fonts, @"SomeCommonFontsFolder"); 
} 
Imports Leadtools 
Imports Leadtools.Codecs 
Imports Leadtools.ImageProcessing 
 
Private Sub RasterDefaultsSetResourceDirectoryExample() 
   ' Set the Fonts Resource folder 
   RasterDefaults.SetResourceDirectory(LEADResourceDirectory.Fonts, "SomeCommonFontsFolder") 
End Sub 
Requirements

Target Platforms

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

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