Esempio n. 1
0
 public void DrawLayout1(Rectangle rect, WarBuilderCardArgs args)
 {
     DrawTopBar1(rect.YDivision(1));
     Image.FromFile(args.ImagePath).DrawCentered(_graphics, rect.YDivision(5, 1));
     args.CardText.DrawBrickLay(_graphics, rect.YDivision(5, 6), _fontContent, _brushes.Content, _stringResolver);
     DrawBottomBar1(rect.YDivision(1, 11));
 }
Esempio n. 2
0
 public void DrawCard(Rectangle rect, int margin, WarBuilderCardArgs args)
 {
     _graphics.FillRectangle(_brushes.CardBackground, rect);
     DrawLayout1(rect.InnerRect(margin), args);
 }