Using canvas for now

This commit is contained in:
Lani Aung
2021-10-11 19:25:42 -06:00
parent 738b3c6d35
commit 590c84b81f
10 changed files with 469 additions and 431 deletions
+3 -3
View File
@@ -43,10 +43,10 @@ namespace fxl.codes.kisekae.Services
switch (line.ToCharArray()[0])
{
case '(':
var resolutionRegex = new Regex("\\(([0-9]*),([0-9]*)\\)");
var resolutionRegex = new Regex(@"\((?<Width>[0-9]*).(?<Height>[0-9]*)\)");
var resolutionMatch = resolutionRegex.Match(line);
model.Width = int.Parse(resolutionMatch.Groups[1].Value);
model.Height = int.Parse(resolutionMatch.Groups[2].Value);
model.Width = int.Parse(resolutionMatch.Groups["Width"].Value);
model.Height = int.Parse(resolutionMatch.Groups["Height"].Value);
break;
case '[':
var borderValue = line.Replace("[", "");