Bitmap bitmap = new Bitmap(100,50); Graphics gg = Graphics.FromImage(bitmap);
gg.DrawImageUnscaledAndClipped(Image.FromFile("img\\SuperMario1-Titleset.png"), new Rectangle(20, 20, 100, 50)); this.pictureBox3.Image = bitmap;
this.pictureBox3.Image 是 Image类型,而bitmap是Bitmap类型,怎么编译通过?????????????
gg.DrawImageUnscaledAndClipped(Image.FromFile("img\\SuperMario1-Titleset.png"), new Rectangle(20, 20, 100, 50)); this.pictureBox3.Image = bitmap;
this.pictureBox3.Image 是 Image类型,而bitmap是Bitmap类型,怎么编译通过?????????????
解决方案 »
- Validation of viewstate MAC failed.
- c# 打包 asp.net站点 如何选择IIS中.NET版本
- CMS系统的“评论”模块数据表问题
- 感觉自己做的东西丑,大家给些美化建议
- foreach读取datareader记录的问题
- 未将对象引用设置到对象的实例。
- datagrid删除问题
- 跪求.net (C#代码)学习代码 最好sql server 数据库 优秀代码 马上接贴
- 请问哪里有稍微便宜点的.net主机 我只是个学生(100分求到合适就给)
- 怎样去掉日期绑定时产生的没有意义的0
- 问题请教。
- |zyciis| 第二贴:如何用代码将一个table生成一个list对像(我要的是动态生成,适应各种table),谢谢 有代码
image是所有图像类型的基类。
而bitmap继承image