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.Threading.Tasks;
using System.Windows.Forms;
namespace GDIDrawImage
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
protected override void OnPaint(PaintEventArgs e)
{
Graphics G = e.Graphics;
Bitmap image = new Bitmap("lena.jpg");
G.DrawImage(image, new Point(0, 0));
G.DrawImage(image, new Rectangle(0, 0, 150, 150));
//这三个PointF结构表示的平行四边形的左上角、 右上方和左下角
G.DrawImage(image, new Point[] { new Point(300, 0), new Point(300,