public static AnimPalette ConvertAP(params byte[][] imgs) { AnimPalette APal = new AnimPalette(); APal.Palettes.Add(Convert(imgs, imgs[0].Length).Item2); return(APal); }
private void button1_Click(object sender, EventArgs e) { APM = new AnimPalMap(); AP = new AnimPalette(); List<byte[]> imgs = new List<byte[]>(); int i = 1; for (i = 1; i < 1024; i++) try { byte[] bts = Converter.ImageToByteArray(@"SpriteImgs\" + i + @".png"); imgs.Add(bts); } catch { break; } byte[][] Imgs = imgs.ToArray(); APM = Converter.ConvertAPM(Imgs); AP = Converter.ConvertAP(Imgs); }
private void button8_Click(object sender, EventArgs e) { AP = new AnimPalette(); int i = 1; for (i = 1; i < 1024; i++) try { byte[] bts = Converter.ImageToByteArray(@"InPalettes\" + i + @".png"); AP.Palettes.Add(Converter.LoadAP(bts)); } catch { break; } }
public static AnimPalette ConvertAP(params byte[][] imgs) { AnimPalette APal = new AnimPalette(); APal.Palettes.Add(Convert(imgs, imgs[0].Length).Item2); return APal; }