您的位置:首页 > 编程语言 > C#

c#图像旋转和翻转

2008-12-18 11:27 253 查看
using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Text;

using System.Windows.Forms;

namespace WindowsApplication2

{

public partial class Form17 : Form

{

public Form17()

{

InitializeComponent();

}

private void button1_Click(object sender, EventArgs e)

{

using (Bitmap bmp = new Bitmap(@"d:/我的文档/桌面/ico/watermark.bmp"))

{

Graphics g = this.CreateGraphics();

Rectangle rect = new Rectangle(0, 0, 100, 100);

//bmp.RotateFlip(RotateFlipType.Rotate90FlipNone);

bmp.RotateFlip(RotateFlipType.RotateNoneFlipX);

g.DrawImage(bmp, rect);

}

}



}

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐