Grid style dialog – Pitney Bowes MapXtreme User Manual

Page 325

Advertising
background image

Chapter 17: Working with Rasters and Grids

Grid Style

MapXtreme v7.1

332

Developer Guide

Hillshading is enabled via a checkbox in the GridStyle dialog. The horizontal and vertical light source
angles and scale factor are set in LayerControl. Programmatically, hillshading can be added to a grid
via the MapInfo.Raster.HillshadeWrite class.

Grid Style Dialog

The Grid Style dialog is where you can modify the style settings of a grid, including color, inflection
value, contrast, brightness, translucency, and more through a graphical user interface (GUI). The
style is applied to the grid layer as a FeatureOverrideStyleModifier.

To reach the Grid Style dialog, open a grid image in Workspace Manager. Select the grid layer and
right-click to display the Add Style Override menu item. In the Visibility tab, click the Grid Image Style
button to display the dialog. Each component of the Grid Style dialog is explained below.

Color/Value/% (Percentage)

The Color/Value/% (Percent) grid box shows the current settings for inflection colors, values and
percentage.

To change the color, double-click on the color swatch and choose a new color from the Color dialog
palette.

The value and % settings come from the data in the grid. These values can change when you modify
settings in the Inflection Point Settings group of this dialog. That will cause a re-calculation of the
inflections and display new values. For example, you can edit the values directly when you choose
Custom Value Ranges and the percentage when you choose Custom Cell Count.

L

If you edit either the values or percentages while the inflection methods are set to Equal
Value Ranges or Equal Cell Count, the methods become Custom Value Range and Custom
Cell Count, respectively.

Advertising