1个点1个点的显示..使用Timer控件用 Bitmap.SetPixel 来做把.
解决方案 »
- 想要用C#搭建一套C/S系统,本人菜鸟,不知该写几套软件,是客户端和服务器各一套吗?
- iis配置的网站,用户 'sa' 登录失败。
- 关于xml中存取图片的问题
- 请问如何将字符串Aug 1 2007 12:05:12:000AM转换成DateTime格式?
- 大虾进来看看,一些简单的问题
- 使用access数据库时遇到的一个弱智问题!请帮我看看!先谢了~~~~~~~~~~~~~~~~~~~~~~~~~~
- 连sql2000时出现服务器枚举错误
- 急急急急 来看看啊 多连接和 删除 在线等待
- ado.net问题
- 涉及Treeview的实现方法
- 怎样上传图片?
- 我是个新手问个C#问题`但是没分给`哪个好心的哥哥姐姐`帮下忙好吗?
两重循环,遍历宽和高,然后:
Bitmap.SetPixel(X, Y, Color);
Color c = new Color();
Bitmap box1 = new Bitmap(pictureBox1.Image);
Bitmap box2 = new Bitmap(pictureBox1.Image); for (int i = 0; i < pictureBox1.Image.Width; i++)
{
for (int j = 0; j < pictureBox1.Image.Height; j++)
{
c = box1.GetPixel(i, j); if (c == Color.FromArgb(255, 0, 0))
{
c = Color.FromArgb(20, c); //如果是红色就做半透明处理Alpha = 20;
}
box2.SetPixel(i, j, c); pictureBox2.Refresh();
pictureBox2.Image = box2;
}
}