Created
August 22, 2024 23:53
-
-
Save chuchuva/3aa588c0cfa58b1b905ff28406261b28 to your computer and use it in GitHub Desktop.
How to multiply all values in SVG path by 10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Regex.Replace("M87.3,41.08v26.68c0,9.08-7.41C79.89,24.61,87.3,32,87.3,41.08z", "([0-9\\.]{0,})", (m) => | |
{ | |
decimal i; | |
if (decimal.TryParse(m.Value, out i)) | |
{ | |
return (i*10).ToString("0.##"); | |
} | |
return m.Value; | |
}, RegexOptions.None) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment