mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-08 17:42:31 +02:00
26 lines
738 B
C#
26 lines
738 B
C#
/*
|
|
* GNU AFFERO GENERAL PUBLIC LICENSE
|
|
* Version 3, 19 November 2007
|
|
* Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
* Everyone is permitted to copy and distribute verbatim copies
|
|
* of this license document, but changing it is not allowed.
|
|
*/
|
|
|
|
using Avalonia;
|
|
|
|
namespace UVtools.WPF.Extensions
|
|
{
|
|
public static class PrimitivesExtensions
|
|
{
|
|
public static System.Drawing.Point ToDotNet(this Point point)
|
|
{
|
|
return new System.Drawing.Point((int) point.X, (int) point.Y);
|
|
}
|
|
|
|
public static Point ToAvalonia(this System.Drawing.Point point)
|
|
{
|
|
return new Point(point.X, point.Y);
|
|
}
|
|
}
|
|
}
|