←Select platform

SetResourceDirectory Method

Summary

Sets the path for the specified LEADTOOLS resource directory.

Syntax

C#
VB
Java
WinRT C#
C++
public static void SetResourceDirectory( 
   LEADResourceDirectory resource, 
   string directory 
) 
Public Shared Sub SetResourceDirectory( _ 
   ByVal resource As Leadtools.LEADResourceDirectory, _ 
   ByVal directory As String _ 
)  
public static void SetResourceDirectory(  
   Leadtools.LEADResourceDirectory resource, 
   string directory 
) 
public static void setResourceDirectory(LEADResourceDirectory resource, String directory) 
 function Leadtools.RasterDefaults.SetResourceDirectory(  
   resource , 
   directory  
) 
public: 
static void SetResourceDirectory(  
   Leadtools.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.

Example

C#
VB
using Leadtools; 
using Leadtools.Codecs; 
using LeadtoolsExamples.Common; 
 
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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly