แนวสอบ เหลือ - TopicsExpress



          

แนวสอบ เหลือ ออกแบบบัตรเครดิตเด้อ using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Drawing.Drawing2D; using System.Linq; using System.Text; using System.Windows.Forms; namespace ooosob { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { Graphics g = this.CreateGraphics(); GraphicsPath graphpath = new GraphicsPath(); Pen penCurrent = new Pen(Color.Blue, 2); Point[] pt = { new Point(40,20), new Point (40,100), new Point (204,100), new Point(204,20)}; g.DrawClosedCurve(penCurrent, pt, 0.75f, FillMode.Winding); } private void button2_Click(object sender, EventArgs e) { Graphics g = this.CreateGraphics(); Bitmap bmp = new Bitmap("D:/580388_590835504262329_1312688849_n.jpg"); //bmp.RotateFlip(RotateFlipType.RotateNoneFlipXY); g.DrawImage(bmp, 10, 10); } private void button3_Click(object sender, EventArgs e) { Graphics g = this.CreateGraphics(); Bitmap bmp = new Bitmap("D:/580388_590835504262329_1312688849_n.jpg"); bmp.RotateFlip(RotateFlipType.RotateNoneFlipXY); g.DrawImage(bmp, 10, 10); } private void button4_Click(object sender, EventArgs e) { Graphics g = this.CreateGraphics(); Rectangle rect2 = new Rectangle(20, 30, 80, 60); Rectangle clipRect = new Rectangle(0, 0, 100, 100); g.SetClip(clipRect); g.TranslateClip(10, 10); g.DrawRectangle(Pens.Black, rect2); } private void button5_Click(object sender, EventArgs e) { Graphics g = this.CreateGraphics(); Rectangle clipRect = new Rectangle(0, 0, 100, 100); g.SetClip(clipRect); g.TranslateClip(50, 50); g.FillRectangle(new SolidBrush(Color.Green), 0, 0, 400, 300); } private void button6_Click(object sender, EventArgs e) { Graphics g = this.CreateGraphics(); Rectangle rect2 = new Rectangle(25, 30, 80, 60); Rectangle clipRect = new Rectangle(5, 5, 100, 100); g.SetClip(clipRect); g.TranslateClip(15, 15); g.DrawRectangle(Pens.Black, rect2); } private void button7_Click(object sender, EventArgs e) { Graphics g = this.CreateGraphics(); Font font = new Font("Arial", 20); StringFormat format = new StringFormat(StringFormatFlags.NoWrap); g.DrawString("รายชื่อผู้จัดทำ นายภาณุวัฒณ์ พัวพาณิชยกุล วคต 3/2", font, Brushes.Green, this.ClientRectangle, format); } } }
Posted on: Thu, 22 Aug 2013 04:29:37 +0000

Trending Topics



Recently Viewed Topics




© 2015