AddCustomBrushStyle

globalmapper.AddCustomBrushStyle(string aImageFilename, string aStyleName) GM_Error_t32, GM_BrushStyle_t16[source]

Adds a new custom brush style that can be used when drawing area features. The returned brush style value can be used as part of a AreaStyle_t definition to specify to fill an area with a pattern based on the provided image file.

If a custom brush style exists with the provided aStyleName the aStyleVal will be set to the enumeration for that style and GM_Error_BrushAlreadyCreated will be returned.

Parameters:
  • aImageFilename (str) – Full path to image filename to use for custom fill pattern

  • aStyleName (str) – Text name to use when referring to the fill style

Returns:

Error Code

Return type:

GM_Error_t32

Returns:

Value of created custom fill style

Return type:

GM_BrushStyle_t16