Last change
on this file since 13348 was
12762,
checked in by aballeit, 10 years ago
|
#2283 GUI updates, Tree-chart, MCTS Version 2 (prune leaves)
|
File size:
594 bytes
|
Rev | Line | |
---|
[12762] | 1 | using System;
|
---|
| 2 | using System.Text;
|
---|
| 3 | using System.Windows;
|
---|
| 4 | using System.Windows.Media;
|
---|
| 5 | using System.Collections.Generic;
|
---|
| 6 |
|
---|
| 7 | using SharpVectors.Dom.Css;
|
---|
| 8 | using SharpVectors.Dom.Svg;
|
---|
| 9 |
|
---|
| 10 | namespace SharpVectors.Renderers.Utils
|
---|
| 11 | {
|
---|
| 12 | public static class SvgConvert
|
---|
| 13 | {
|
---|
| 14 | public static SvgPointF ToPoint(Point pt)
|
---|
| 15 | {
|
---|
| 16 | return new SvgPointF((float)pt.X, (float)pt.Y);
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | public static SvgRectF ToRect(Rect rect)
|
---|
| 20 | {
|
---|
| 21 | return new SvgRectF((float)rect.X, (float)rect.Y, (float)rect.Width, (float)rect.Height);
|
---|
| 22 | }
|
---|
| 23 | }
|
---|
| 24 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.