private Pen FromGeomStyleToPen(GeometryStyle geometryStyle)
        {
            System.Windows.Media.Color c = geometryStyle.StrokeColor;
            Pen v_pen = new Pen(Color.FromArgb(c.A, c.R, c.G, c.B), geometryStyle.StrokeWidth);

            v_pen.LineJoin = LineJoin.Round;
            return(v_pen);
        }
        private void AppendPoints(GeometryStyle style, List <PointF> points)
        {
            if (_points.ContainsKey(style) == false)
            {
                _points[style] = new List <PointF>();
            }

            _points[style].AddRange(points);
        }
        private void AppendFilledPath(GeometryStyle style, GraphicsPath path)
        {
            if (_fills.ContainsKey(style) == false)
            {
                _fills[style] = new List <GraphicsPath>();
            }

            _fills[style].Add(path);
        }
        private void AppendStrokePath(GeometryStyle style, GraphicsPath stroke)
        {
            if (_strokes.ContainsKey(style) == false)
            {
                _strokes[style] = new List <GraphicsPath>();
            }

            _strokes[style].Add(stroke);
        }
 public SqlGeographyStyled(SqlGeography geom, Color fillColor, Color strokeColor, float strokeWidth, string label, bool isInDefaultView)
 {
     Geometry = geom;
     Label    = label;
     Style    = new GeometryStyle(fillColor, strokeColor, strokeWidth, isInDefaultView);
 }
 private Bitmap FromGeomStyleToPoint(Bitmap sourceBitmap, GeometryStyle geometryStyle)
 {
     return(TintBitmap(sourceBitmap, geometryStyle.FillColor.ToGDI(), 1f));
 }
 private Brush FromGeomStyleToBrush(GeometryStyle geometryStyle)
 {
     System.Windows.Media.Color c = geometryStyle.FillColor;
     return(new SolidBrush(Color.FromArgb(c.A, c.R, c.G, c.B)));
 }