Exemple #1
0
        public void SaveJpg(string file, int quality)
        {
            var bytes = new List <byte>();

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

            ImageEncoder.EncodeTga(pixels, Width, Height, bytes);
            File.WriteAllBytes(file, bytes.ToArray());
        }