SetThemeIcons()

Summary

Sets the icons used to draw a theme.

Changes

In Version 2014 added Color Bitmap as a type of icon.

Syntax

SetThemeIcons(string theme_name, array icons)

Argument Contents
theme_name The name of the theme
icons An array with one element for each icon. Each element is an array with three parts, as follows:
Element Type Contents
1 String A string indicating the type of icon: "Font Character" or "Color Bitmap"
2 String The name of a TrueType font (including size and style), or the name of the bitmap file
3 Integer Index of a character in the font, or size of the bitmap in points

Notes

  • SetThemeIcons() assigns the first icon in the array to the Other class if it exists.

  • If there are fewer icons in the array than classes in the theme, SetThemeIcons() reuses the icons from the beginning of the array until all classes have an icon. If there is an Other class, it uses the first icon only once.

  • A null in the array indicates that the default icon for the layer is used.

Example

icn1 = {"Font Character", "Arial|Bold|16", 44}
icn2 = {"Font Character", "Arial|Bold|16", 45}
icn3 = {"Font Character", "Arial|Bold|16", 46}
icn4 = {"Font Character", "Arial|Bold|16", 47}
icn_array = {icn1, icn2, icn3, icn4}
SetThemeIcons("Population", icn_array)

Error Codes

Error Type Meaning
NotFound No theme exists with the specified name

See Also

Function Summary
GetThemeIcons() Gets the list of icons that are used to draw a theme
SetThemeIconColors() Sets the icon colors used to draw a theme
SetIcon() Sets the font and character or bitmap used to draw point features