No Smoothing Mode : Smoothing Mode : Graphics C# Source Code


Custom Search

C# Source Code » Graphics » Smoothing Mode »

 

No Smoothing Mode









    

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;

public class Form1 : Form
{
    private System.Windows.Forms.PictureBox picNone;

      public Form1() {
            InitializeComponent();
      }
    private void picNone_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
    {
      Pen drawingPen = new Pen(Color.Red, 5);
      e.Graphics.DrawEllipse(drawingPen, 10, 10, 300, 40);
    }

    private void InitializeComponent()
    {
      this.picNone = new System.Windows.Forms.PictureBox();
      this.SuspendLayout();
      // 
      // picNone
      // 
      this.picNone.Location = new System.Drawing.Point(8, 16);
      this.picNone.Name = "picNone";
      this.picNone.Size = new System.Drawing.Size(328, 64);
      this.picNone.TabIndex = 0;
      this.picNone.TabStop = false;
      this.picNone.Paint += new System.Windows.Forms.PaintEventHandler(this.picNone_Paint);
      // 
      // Smoothing
      // 
      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
      this.ClientSize = new System.Drawing.Size(392, 382);
      this.Controls.Add(this.picNone);
      this.Name = "Smoothing";
      this.Text = "Smoothing";
      this.ResumeLayout(false);

    }

      [STAThread]
      static void Main()
      {
        Application.EnableVisualStyles();
        Application.Run(new Form1());
      }

}



           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Graphics
» Smoothing Mode