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