DrawCard() public method

public DrawCard ( int nX, int nY, Graphics zGraphics, CardMaker.Card.DeckLine zDeckLine, bool bExport, bool bDrawBackground ) : void
nX int
nY int
zGraphics System.Drawing.Graphics
zDeckLine CardMaker.Card.DeckLine
bExport bool
bDrawBackground bool
return void
Esempio n. 1
0
 protected override void OnPaint(PaintEventArgs e)
 {
     if (ActiveDeck?.CardLayout == null)
     {
         e.Graphics.FillRectangle(Brushes.White, 0, 0, Size.Width, Size.Height);
         e.Graphics.DrawString("Select a Layout in the Project Window", new Font(DefaultFont.FontFamily, 20), Brushes.Red, new RectangleF(10, 10, Size.Width - 10, Size.Height - 10));
         return;
     }
     
     if (-1 != ActiveDeck.CardIndex && ActiveDeck.CardIndex < ActiveDeck.CardCount)
     {
         m_zCardRenderer.DrawCard(0, 0, e.Graphics, ActiveDeck.CurrentLine, false, true);
     }
 }