public SpriteManager(ISpritingSettings config, IImageLoader imageLoader, Func <byte[], string> generateSpriteUrl, IPngOptimizer pngOptimizer) { this.pngOptimizer = pngOptimizer; this.config = config; this.generateSpriteUrl = generateSpriteUrl; SpriteContainer = new SpriteContainer(imageLoader, config); Errors = new List <SpriteException>(); }
public SpriteManager(ISpritingSettings config, IImageLoader imageLoader, Func<byte[], string> generateSpriteUrl, IPngOptimizer pngOptimizer) { this.pngOptimizer = pngOptimizer; this.config = config; this.generateSpriteUrl = generateSpriteUrl; SpriteContainer = new SpriteContainer(imageLoader, config); Errors = new List<SpriteException>(); }
public SpriteContainer(IImageLoader imageLoader, ISpritingSettings settings) { ImageLoader = imageLoader; this.settings = settings; }