Global Mapper Pro Coming Soon

Transparency for area features

melonzeusmelonzeus Global Mapper UserPosts: 17
edited April 2009 in SDK
Hi, does the SDK provide a way to make area features translucent?

Thanks

Comments

  • global_mapperglobal_mapper Administrator Posts: 17,238
    edited April 2009
    Yes, you use the mBrushColor of the GM_AreaStyle_t type to do this. The color is defined as ARGB where the upper 8 bits are alpha. The exception is a value of 0 in the A is treated as no alpha. So for example to create a red brush that is half translucent (value of 128), use the following:

    COLORRREF theTransRedColor = RGB(255,0,0) + ( 128 << 24 );

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com
Sign In or Register to comment.