diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-03-13 17:16:24 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-03-13 17:16:24 +0100 |
| commit | fda39ed7506551ab48dce271cb2d5e9c63f2b00c (patch) | |
| tree | d0ed602830692962c044f0614639a0939caa03f6 /src/Size.cs | |
| parent | 80dc0221c3455a50b8877f19c4a19043af0042f4 (diff) | |
limit to html safe color plus several ones, crowIDE wip
Diffstat (limited to 'src/Size.cs')
| -rw-r--r-- | src/Size.cs | 8 |
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 () |