public void SaveJpg(string file, int quality) { var bytes = new List <byte>(); ImageEncoder.EncodeJpg(pixels, Width, Height, quality, bytes); File.WriteAllBytes(file, bytes.ToArray()); }
public void SaveTga(string file) { var bytes = new List <byte>(); ImageEncoder.EncodeTga(pixels, Width, Height, bytes); File.WriteAllBytes(file, bytes.ToArray()); }