Scale: IEaxMapScale;
The Scale property adjusts custom parameters of color scale for the express report. Auto calculable scale is not used when parameters are configured with that property (the IMapScale.AutoCalculable is set to False).
This example requires Analyzer of the IEaxAnalyzer type.
Sub UserProc;
Var
i: integer;
EaxMap: IEaxMap;
EaxScale: IEaxMapScale;
Scale: IMapColorScale;
Begin
EaxMap := Analyzer.Map;
EaxScale := EaxMap.Scale;
Scale := EaxScale.MapScale;
Scale.Count := 7;
For i := 0 To Scale.Count - 1 Do
Scale.Value(i) := (i + 1) * 3000;
Scale.Color(i, MapScaleSettingImpact.Less) := New GxColor.CreateRGB(120, 100 + (i*15), 225);
Scale.Color(i, MapScaleSettingImpact.Exact) := New GxColor.CreateRGB(170, 100 + (i*15), 225);
Scale.Color(i, MapScaleSettingImpact.Greater) := New GxColor.CreateRGB(220, 100 + (i*15), 225);
End For;
End Sub UserProc;
After executing this example custom settings are set for the map color scale.
See also: