Click or drag to resize
SoTransferFunctionLoadColormap Method

Loads a colormap from a file.

Namespace: OIV.LDM.Nodes
Assembly: OIV.LDM (in OIV.LDM.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public virtual bool LoadColormap(
	string filename
)

Parameters

filename
Type: SystemString

Return Value

Type: Boolean
Remarks

Returns true if successful. The specified file name must have an extension of either ".am" or ".col".

Note: This method loads RGBA values into the colorMap field, but the application must still set the predefColorMap field to NONE for the custom colormap values to be used.

Supported formats:

  • .am : Avizo Colormap v1.0

  • .col : Avizo Colormap v2.0

See Also