globalmapper.AddCustomBrushStyle ================================ .. currentmodule:: globalmapper .. py:function:: AddCustomBrushStyle (string aImageFilename, string aStyleName) -> GM_Error_t32, GM_BrushStyle_t16 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. :param str aImageFilename: Full path to image filename to use for custom fill pattern :param str aStyleName: Text name to use when referring to the fill style :returns: Error Code :rtype: GM_Error_t32 :return: Value of created custom fill style :rtype: GM_BrushStyle_t16