Пример #1
0
        public byte[] Generate(string memeName, long userId)
        {
            var task  = new MemeTask(_serviceProvider);
            var memes = GetAvailableMemes();
            var meme  = memes.First(x => x.Name == memeName);

            task.LoadMemeConfig(meme.ConfigPath);
            foreach (var command in task.MemeCommands)
            {
                command.Precache(userId);
                command.DoCommand(_imageRender);
            }

            return(_imageRender.Render());
        }
Пример #2
0
 public byte[] GetCover()
 {
     return(_imageRender.Render());
 }