User Tools

Site Tools


ITGIS_GradientMap.RealizeColorMap method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_GradientMap.RealizeColorMap | Methods | Properties

Prepares a colormap as requested.

Available also on: Delphi | .NET | Java.


// C#
public ITGIS_ColorMapArray RealizeColorMap(
  TGIS_ColorMapMode _mode,
  int _subClass,
  WordBool _reverse
' VisualBasic
Public Function RealizeColorMap(
  ByVal _mode As TGIS_ColorMapMode,
  ByVal _subClass As Integer,
  ByVal _reverse As WordBool
) As ITGIS_ColorMapArray
// Oxygene
  function RealizeColorMap(
    _mode : TGIS_ColorMapMode;
    _subClass : Integer;
    _reverse : WordBool
  ) : ITGIS_ColorMapArray;


Name Type Description
_mode TGIS_ColorMapMode colormap mode (continuous by default or discrete)
_subClass int
if available, gets subclass of a ramp with specified, or the possible nearest to specified, number of colors; if 0, gets default colormap (this is the default parameter);
_reverse WordBool if True, reverses colors from colormap (False is the default parameter);


Type Description
ITGIS_ColorMapArray Array of a colormap.



Color ramps can be prepared in continuous or discrete mode by setting desired TGIS_ColorMapMode to the _mode parameter.

Continuous mode (default) Discrete mode


Some ramps, besides the default definition, have versions prepared with a specific number of colors. Using _subclass parameter, you can request a colormap with a defined number of colors, if suchcolormap representation exist.

Three different representations of YellowGreenBlue color ramp.
Color ramp with 3 colors (subclass=3) Default color ramp definition (subclass=0) Color ramp with 9 colors (subclass=9)

Reverse colors

Colors in a ramps can be reversed by setting the _reverse parameter to True.

Default color ramp definition (reverse=False) Reversed color ramp (reverse=True)
2021/01/14 01:04

Page Tools