TextureBrush MyBrush=new TextureBrush(tmpBmp);
this.picPreview.Refresh();
e.Graphics.TranslateTransform(iRotX,iRotY);
MyBrush.RotateTransform(iAngle);
e.Graphics.TranslateTransform(-iRotX,-iRotY);
e.Graphics.FillRectangle(MyBrush,0,0,this.ClientRectangle.Width,this.ClientRectangle.Height);我要在此基础上将tmpBmp截取 请问我改怎么做?
this.picPreview.Refresh();
e.Graphics.TranslateTransform(iRotX,iRotY);
MyBrush.RotateTransform(iAngle);
e.Graphics.TranslateTransform(-iRotX,-iRotY);
e.Graphics.FillRectangle(MyBrush,0,0,this.ClientRectangle.Width,this.ClientRectangle.Height);我要在此基础上将tmpBmp截取 请问我改怎么做?
解决方案 »
- 两个函数,仅仅是类型不同,函数代码相同,该如何写成一个函数。如:
- 请用最简单的话概括uml的建模过程
- 生成的winform程序的exe文件在symbolMc3000设备上出错
- 想用C语言调用C#作成的Com dll,请问高手大大们有办法吗?
- Asp.net页面无法访问的问题。好奇怪
- C#怎么得到当前运行的EXE文件所在的路径?多谢
- 大家看过csdn主页上的一篇文章了没有啊?关于一个女程序员创业的,来谈谈感想!散分!
- 自定义协议问题 我该怎么把它封装好发送与接受呢??
- 如何将存储时间类型的文本框里的数据存到数据库中?
- HtmlDocument.Cookie 能改写cookies吗?
- 请问C#读delphi6存储的(2进制)数据的问题
- c#异常处理出现两个try语句正确吗
也可以自己寫函數~~圖片只是一組二維數組,當然還有文件格式,這個都有現成的,簡單的圖形操作樓主應該學會
Bitmap bmp=b.Clone(new System.Drawing.Rectangle(0,0,20,20),System.Drawing.Imaging.PixelFormat.Format32bppPArgb);
Image image = System.Drawing.Image.FromFile("a.jpg",true);
Bitmap bmp = new Bitmap(400,400);
Graphics grap = Graphics.FromImage(bmp);
grap.Clear(Color.Transparent);
grap.DrawImage(image,new Rectangle(0,0,400,400));