Register  |  Login   Search
ThinkGeo - GPS Tracking and Mapping Solutions  |  Home  |  Cygnus Track  |  Developer Community
 
LivePerson Chat

Discussion Forums

The online community for users of Map Suite GIS components

Halo Text
Last Post 11-24-2008 09:38 PM by Scott. 1 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
AlanUser is Offline
Level 1
Level 1
Posts:6

--
11-24-2008 04:22 PM

How can I get create a TextRenderer that creates halo text similar to the GeoTextStyle Park1?

ScottUser is Online
MVP
MVP
Posts:54
Avatar

--
11-24-2008 09:38 PM
Alan,

The following is the code what you need:

GeoFont font = new GeoFont(fontFamilyName, fontSize, drawingFontStyle);
GeoSolidBrush txtBrush = new GeoSolidBrush(fontColor);
TextStyle result = new TextStyle(textColumnName, font, txtBrush);
result.HaloPen = new GeoPen(haloPenColor, haloPenWidth);

These code can create a TextStyle that creates halo text similar to the Park1 of GeoTextStyle.

Thanks,
You are not authorized to post a reply.

Active Forums 4.1