Click or drag to resize

GM_AddCustomBrushStyle

Adds a custom brush style to use when drawing area features.

Syntax
GM_DLL_EXPORTED GM_Error_t32 __stdcall GM_AddCustomBrushStyle
(
const char*             aImageFilename,     // IN: Full path to image filename to use for custom fill pattern
const char*             aStyleName,         // IN: Text name to use when referring to the fill style
GM_BrushStyle_t16*      aStyleVal           // OUT: Value of created custom fill style
);
Remarks

The returned brush style value can be used as part of a GM_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.