LoadFile ColorMap, Levels
LoadFile loads the specified color spectrum file .CLR or level file .LVL.
Syntax
object.LoadFile( FileName )
Parameter |
Type |
Required/ Optional |
Default |
Description |
FileName |
String |
Required |
This provides the path and file name of the color map or level file. |
Remarks
Version 3 CLR files are loaded as version 2 CLR files when loaded via automation. Version 3 CLR files added support for color interpolation methods and separate opacity and color nodes. When loading a version 3 CLR with LoadFile, the colormap will use the default Linear interpolation and include the same number of opacity nodes as color nodes, regardless of the interpolation method and number of opacity nodes specified in the file.
Example 1
This example demonstrates how to load a color map file. Refer to the script on the ColorMap Object page.
ColorMap.LoadFile(SurferApp.Path+"\Samples\Rainbow.clr")
Example 2
This example demonstrates how to load a level file. Refer to the script on the Levels Collection page.
Levels.LoadFile("c:\temp\sample.lvl")
Used by: ColorMap object, Levels collection