Click or drag to resize
CDBSetVAProfColorFile Method
Set colours for a VA channel when displayed in the profile window.

Available since Oasis montaj version: 5.1.5
License: Available to anyone.  

Namespace: GeoEngine.Core.GXNet
Assembly: geoengine.core.gxnet (in geoengine.core.gxnet.dll)
Notes
Fails in the channel is not an array channel, if the file does not exist, or if it is not a valid colour zone file. The individual columns in the array channel are displayed using the input zone file colours. A linear ITR from 0 to 1 is created on the colour zones to map to individual channel indices (expressed as a fraction as shown below). For instance, for a file with 8 colours the ranges are as follows: Colour Range Colour 1 0 > value >= 0.125 Colour 2 0.125 > value >= 0.25 Colour 3 0.25 > value >= 0.375 Colour 4 0.375 > value >= 0.5 Colour 5 0.5 > value >= 0.625 Colour 6 0.625 > value >= 0.75 Colour 7 0.75 > value >= 0.875 Colour 8 0.875 > value >= 1.0 When an array channel is displayed, the index of each element (column) is mapped into the corresponding range above using the following formula: value = (column index) / (# of columns - 1) For an array with 8 columns, you get the following values: Column Value Colour 0 0 1 1 0.14 2 2 0.28 3 3 0.43 4 4 0.57 5 5 0.71 6 6 0.86 7 7 1.0 8 The colour file search path is: Local directory, then oasismontaj\tbl.
Syntax
public void SetVAProfColorFile(
	int i1,
	string str2
)

Parameters

i1
Type: SystemInt32
channel (Locked DB_LOCK_READWRITE)
str2
Type: SystemString
zone file name, "" to clear.
See Also