Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/SharpVectorRenderingGdi/SvgConverter.cs @ 14052

Last change on this file since 14052 was 12762, checked in by aballeit, 9 years ago

#2283 GUI updates, Tree-chart, MCTS Version 2 (prune leaves)

File size: 802 bytes
Line 
1using System;
2using System.Text;
3using System.Drawing;
4using System.Collections.Generic;
5
6using SharpVectors.Dom.Css;
7using SharpVectors.Dom.Svg;
8
9namespace SharpVectors.Renderers
10{
11    public static class SvgConverter
12    {
13        public static SvgPointF ToPoint(Point pt)
14        {
15            return new SvgPointF(pt.X, pt.Y);
16        }
17
18        public static SvgPointF ToPoint(PointF pt)
19        {
20            return new SvgPointF(pt.X, pt.Y);
21        }
22
23        public static SvgRectF ToRect(Rectangle rect)
24        {
25            return new SvgRectF(rect.X, rect.Y, rect.Width, rect.Height);
26        }
27
28        public static SvgRectF ToRect(RectangleF rect)
29        {
30            return new SvgRectF(rect.X, rect.Y, rect.Width, rect.Height);
31        }
32    }
33}
Note: See TracBrowser for help on using the repository browser.