ThinkGeo.com    |     Documentation    |     Premium Support

Area style without outline

I am trying to draw an area style without an outline, if i specify a pen of 0 and color transparent or even specify no pen, the boundary is still visible because not all of the pixels are being painted with the solidfillbrush of the area style.


The first image is with a gray 1.0 outline, the next image is without a pen specified.


Is there any way to make the boundary not visible?


See attached:



To accomplish this, I found that I had to use a pen created from the GeoColor of my brush.

Yes, the solution is to use a Pen and Brush of the same color such as:


AreaStyle areaStyle = new AreaStyle(new GeoPen(GeoColor.StandardColors.Turquoise), new GeoSolidBrush(GeoColor.StandardColors.Turquoise));
If you use just a Brush, you will have a little spacing to where the pen would draw.

Thanks for the help. I should’ve figuered that one out.  Sometimes it is hard to see the forest thru the trees!!!

Thanks for all your sharing.  
  
 Please let us know if you have more questions, Ed.