Modifying a Colourbar .ducb File

Colourbars are stored in files with a .ducb extension. These are eXtensible Markup Language (XML) files that can be easily modified by anyone with a basic knowledge of XML. By changing the .ducb file in XML, you can adjust the position of the colour points as well as change the colours and opacity of the different colour points in the colourbar. By default, Insight keeps its colourbar files in C:\Program Files (x86)\DownUnder GeoSolutions\Insight 4.0\colourbars.

Modify colourbar .ducb file

  1. Open the file in a text editor.
  2. Change the percentage range that is associated with a given colour in the colourbar. This allows you to place a colour point at the exact place you want. See example below.
  3. Type the RGB and opacity values (0–255).
  4. Save the file.

Example

The following example shows part of a .ducb file in XML:  

<com.dugeo.viz.captaincook.colourbar.ColourBarMemento>

<colourPointMementos>

   <com.dugeo.viz.captaincook.colourbar.ColourPointMemento>

     <rangePercent>0.0</rangePercent>

     <colour>

        <red>0</red>

        <green>51</green>

        <blue>255</blue>

        <alpha>255</alpha>

     </colour>