コード例 #1
0
ファイル: Draw.cs プロジェクト: andihit/littleRunner
 public abstract void DrawString(string text, dFont font, dColor color, float x, float y);
コード例 #2
0
        public GameControl_FPS(int top, int left, string font, float size)
        {
            Visible = false;
            this.fps = new List<int>();
            Top = top;
            Left = left;
            this.font = font;
            this.size = size;

            f1 = new dFont(font, size, new dFontStyle(dFontWeight.Bold), new dFontFormat(dFontAligment.Left));
            f2 = new dFont(font, size, new dFontStyle(dFontWeight.Bold), new dFontFormat(dFontAligment.Right));
        }
コード例 #3
0
        public GameControl_Score(int top, int left, string font, float size)
        {
            score = 0;
            Top = top;
            Left = left;
            this.font = font;
            this.size = size;

            f1 = new dFont(font, size, new dFontStyle(dFontWeight.Bold), new dFontFormat(dFontAligment.Left));
            f2 = new dFont(font, size, new dFontStyle(dFontWeight.Bold), new dFontFormat(dFontAligment.Right));
        }
コード例 #4
0
ファイル: Draw_GDI.cs プロジェクト: andihit/littleRunner
 public override void DrawString(string text, dFont font, dColor color, float x, float y)
 {
     System.Drawing.SolidBrush b = new System.Drawing.SolidBrush(color.ToGDI());
     System.Drawing.Font f = new System.Drawing.Font(font.Family, font.Size, font.Style.ToGDI());
     g.DrawString(text, f, b, (int)x, (int)y, font.Format.ToGDI());
 }