Last change
on this file since 13791 was
12762,
checked in by aballeit, 9 years ago
|
#2283 GUI updates, Tree-chart, MCTS Version 2 (prune leaves)
|
File size:
802 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Text;
|
---|
3 | using System.Drawing;
|
---|
4 | using System.Collections.Generic;
|
---|
5 |
|
---|
6 | using SharpVectors.Dom.Css;
|
---|
7 | using SharpVectors.Dom.Svg;
|
---|
8 |
|
---|
9 | namespace 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.