aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/Size.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-03-13 17:16:24 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-03-13 17:16:24 +0100
commitfda39ed7506551ab48dce271cb2d5e9c63f2b00c (patch)
treed0ed602830692962c044f0614639a0939caa03f6 /src/Size.cs
parent80dc0221c3455a50b8877f19c4a19043af0042f4 (diff)
limit to html safe color plus several ones, crowIDE wip
Diffstat (limited to 'src/Size.cs')
-rw-r--r--src/Size.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Size.cs b/src/Size.cs
index ccd1ab31..891c1fb5 100644
--- a/src/Size.cs
+++ b/src/Size.cs
@@ -163,6 +163,14 @@ namespace Crow
{
return new Size(s.Width + i, s.Height + i);
}
+ public static Size operator *(Size s, int i)
+ {
+ return new Size(s.Width * i, s.Height * i);
+ }
+ public static Size operator /(Size s, int i)
+ {
+ return new Size(s.Width / i, s.Height / i);
+ }
#endregion
public override int GetHashCode ()