diff --git a/src/ElectronNET.API/Entities/Point.cs b/src/ElectronNET.API/Entities/Point.cs
index a464bed..9b3bed8 100644
--- a/src/ElectronNET.API/Entities/Point.cs
+++ b/src/ElectronNET.API/Entities/Point.cs
@@ -20,5 +20,14 @@
/// The y.
///
public int Y { get; set; }
+
+ ///
+ /// Convert this to .
+ ///
+ /// The point.
+ public static implicit operator System.Drawing.Point(Point point)
+ {
+ return new System.Drawing.Point(point.X, point.Y);
+ }
}
}
\ No newline at end of file
diff --git a/src/ElectronNET.API/Entities/Rectangle.cs b/src/ElectronNET.API/Entities/Rectangle.cs
index 5d171e7..b062272 100644
--- a/src/ElectronNET.API/Entities/Rectangle.cs
+++ b/src/ElectronNET.API/Entities/Rectangle.cs
@@ -36,5 +36,14 @@
/// The height.
///
public int Height { get; set; }
+
+ ///
+ /// Convert this to .
+ ///
+ /// The rectangle.
+ public static implicit operator System.Drawing.Rectangle(Rectangle rectangle)
+ {
+ return new System.Drawing.Rectangle(rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height);
+ }
}
}
\ No newline at end of file
diff --git a/src/ElectronNET.API/Entities/Size.cs b/src/ElectronNET.API/Entities/Size.cs
index d63d180..61bbd12 100644
--- a/src/ElectronNET.API/Entities/Size.cs
+++ b/src/ElectronNET.API/Entities/Size.cs
@@ -20,5 +20,14 @@
/// The height.
///
public int Height { get; set; }
+
+ ///
+ /// Convert this to .
+ ///
+ /// The size.
+ public static implicit operator System.Drawing.Size(Size size)
+ {
+ return new System.Drawing.Size(size.Width, size.Height);
+ }
}
}
\ No newline at end of file