diff options
| author | AShifter <[email protected]> | 2018-02-12 09:10:20 -0700 |
|---|---|---|
| committer | AShifter <[email protected]> | 2018-02-12 09:10:20 -0700 |
| commit | 70d9df993db283d38f5441d0d0f47b5803020630 (patch) | |
| tree | 2b3605c76ce04d0ec7bc337d1cd70669f3920528 /shiftskn/Pic2PNG.cs | |
| parent | d078e1089c8d1f0efc14c2461017ff244cc3031e (diff) | |
| download | shiftskn-rewind-master.tar.gz shiftskn-rewind-master.tar.bz2 shiftskn-rewind-master.zip | |
I think this one can decompile 0.0.x skins, not sure... Maybe I should
check?
Diffstat (limited to 'shiftskn/Pic2PNG.cs')
| -rw-r--r-- | shiftskn/Pic2PNG.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/shiftskn/Pic2PNG.cs b/shiftskn/Pic2PNG.cs new file mode 100644 index 0000000..7afc57e --- /dev/null +++ b/shiftskn/Pic2PNG.cs @@ -0,0 +1,22 @@ +using System; +using System.Drawing; +using System.Drawing.Imaging; +using System.IO; + +namespace shiftskn +{ + public abstract class Pic2PNG + { + public static void Convert(string input, string output = "") + { + if (output == "" || output == null) + { + output = input; + } + Image pic = Image.FromFile(input); + output = Path.ChangeExtension(output, "png"); + pic.Save(output, ImageFormat.Png); + Console.WriteLine("Converted " + Path.GetFileName(input) + " to " + Path.GetFileName(output)); + } + } +} |
