Check out what's going on in the OSITM section!
0 Members and 1 Guest are viewing this topic.
Hotspots is an idea, I'll try making that but I think it will be beyond my programming knowledge
private void button2_DragDrop(object sender, DragEventArgs e) { string[] files = (string[])e.Data.GetData(DataFormats.FileDrop); foreach (string file in files) { FileInfo fi = new FileInfo(file); if (fi.Exists) { if (fi.Extension.Equals(".fsh")) { FSHImage fsh = new FSHImage(); BitmapItem bi = new BitmapItem(); FileStream fstream = new FileStream(fi.FullName, FileMode.Open); string path = Path.GetDirectoryName(Application.ExecutablePath); fsh.Load(fstream); bi = (BitmapItem)fsh.Bitmaps[0]; bi.Bitmap.Save(Path.Combine(path, Path.GetFileNameWithoutExtension(fi.FullName) + ".png"), ImageFormat.Png); bi.Alpha.Save(Path.Combine(path, Path.GetFileNameWithoutExtension(fi.FullName) + "_a.png"), ImageFormat.Png); } } } }