public ImageSharpDrawingSurface(SizeF size, FontCollection fonts, ImageSharpEffectFactory effectFactory) { Image = new Image <Rgba32>((int)size.Width, (int)size.Height); batch = new ImageSharpSpritBatch(Image, fonts, effectFactory); }
public ImageSharpSpritBatch(Image <Rgba32> image, FontCollection fontCollection, ImageSharpEffectFactory effectFactory) { this.image = image; this.fontCollection = fontCollection; this.effectFactory = effectFactory; }