Пример #1
0
        public void SavePngMultiColorDoubleWidth(string filename, SpriteArray sprites, bool transparentBackground)
        {
            using var b = new Bitmap(SpriteArray.TotalWidth, C64Sprite.Height);
            var x = 0;

            foreach (var sprite in sprites)
            {
                sprite.ExportMultiColorDoubleWidth(b, x, 0, transparentBackground);
                x += C64Sprite.Width;
            }

            b.Save(filename, ImageFormat.Png);
        }
Пример #2
0
        public void SavePngMultiColor(string filename, SpriteArray sprites, bool transparentBackground)
        {
            const int w = C64Sprite.Width / 2;

            using var b = new Bitmap(sprites.TotalMultiColorWidth, C64Sprite.Height);
            var x = 0;

            foreach (var sprite in sprites)
            {
                sprite.ExportMultiColor(b, x, 0, transparentBackground);
                x += w;
            }

            b.Save(filename, ImageFormat.Png);
        }