我有坐标的油漆图像 [英] paint image where i have the coordinates

查看:62
本文介绍了我有坐标的油漆图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这样的代码



i have code like this

foreach (Point p in clusters[i])
{                  
    //this is my code
}





p是图片的坐标

喜欢(4,100)其中x = 4且y = 100



应该添加什么代码

以便每个坐标p ,更改像素值



p is coordinates of image
like (4, 100) where x=4 and y=100

what should code add
so that each coordinate p, changed the pixel value

推荐答案

使用Bitmap.SetPixel:

Use Bitmap.SetPixel:
myBitmapToChange.SetPixel(p.X, p.Y, Color.Green);


这篇关于我有坐标的油漆图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆