Hi,
We are using the text labels on the GraticuleAdornmentLayer and wanted to change the font pen colour, but recently noticed that the layer places a white ‘halo’ around the text. I haven’t been able to find a setting to remove the halo. Is there anyway to remove this, or (even better) is there a way to be able to change the halo.
Example below of what we currently have - we haven’t yet found a way to change the white halo effect.
Thanks,
Richard.
Graticule text pen has white halo
Hi Richard,
Thanks for reporting this, I guess this should be a miss in our products, could you get the latest version 7.0.57.0 or higher to have a try? In which, we added a new API "GraticuleTextHaloPen " to support it, the code should look like as following:
GraticuleAdornmentLayer adornmentLayer = new GraticuleAdornmentLayer();
adornmentLayer.Projection = prj;
adornmentLayer.GraticuleLineStyle.OuterPen.Color = GeoColor.SimpleColors.DarkYellow;
adornmentLayer.GraticuleTextFont = new GeoFont("Arial UI", 15, DrawingFontStyles.Bold);
adornmentLayer.GraticuleTextBrush = new GeoSolidBrush(GeoColor.SimpleColors.Black);
adornmentLayer.GraticuleTextHaloPen = null;
Thanks,
Johnny
Hi Johnny,
Thanks for the sample. Exactly what I needed. Updated to 7.0.57.0 and working brilliantly.
Thanks,
Richard.
Hi Richard,
Great to hear it helped, if you have any more question, please feel free to let us know.
Best Regards
Summer