コード例 #1
0
ファイル: Form1.cs プロジェクト: AlmaIbrasimovic/Projects
        private void Form1_Paint(object sender, PaintEventArgs e)
        {
            Graphics GI;

            GI = this.CreateGraphics();
            Pen crvena = new Pen(Color.DarkRed, 5);
            Pen bijela = new Pen(Color.White, 5);

            GI.DrawLine(crvena, 265, 100, 275, 100);
            GI.DrawLine(crvena, 290, 100, 300, 100);
            GI.DrawLine(crvena, 260, 105, 280, 105);
            GI.DrawLine(crvena, 285, 105, 305, 105);
            GI.DrawLine(crvena, 255, 110, 310, 110);
            GI.DrawLine(crvena, 255, 115, 280, 115);
            GI.DrawLine(bijela, 280, 115, 285, 115);
            GI.DrawLine(crvena, 285, 115, 310, 115);
            GI.DrawLine(crvena, 260, 120, 275, 120);
            GI.DrawLine(bijela, 275, 120, 290, 120);
            GI.DrawLine(crvena, 290, 120, 305, 120);
            GI.DrawLine(crvena, 265, 125, 280, 125);
            GI.DrawLine(bijela, 280, 125, 285, 125);
            GI.DrawLine(crvena, 285, 125, 300, 125);
            GI.DrawLine(crvena, 270, 130, 295, 130);
            GI.DrawLine(crvena, 275, 135, 290, 135);
            GI.DrawLine(crvena, 280, 140, 285, 140);
            using (Font font1 = new Font("Times New Roman", 16, FontStyle.Bold, GraphicsUnit.Point))
            {
                PointF pointF1 = new PointF(252, 150);
                e.Graphics.DrawString("NMK", font1, Brushes.DarkRed, pointF1);
            }
        }