自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(0)
  • 资源 (1)
  • 收藏
  • 关注

空空如也

标示路面黄线

public partial class Form1 : Form { public Form1() { InitializeComponent(); } //Bitmap bt; private void Form1_Load(object sender, EventArgs e) { findfix(); } public void findfix() { int i = 0, j = 0,x=0; double pix=0; int thwid = 0, thhei = 0; double ccc = 0; Color c = new Color(); Bitmap p = new Bitmap(pictureBox1 .Image ); ccc = p.Height / 3 * 2; thhei = Convert .ToInt32(ccc); int[,] count = new int[p.Width, p.Height]; for (i = 0 ; i < p.Width-1 ; i++) { for (j = 0; j < p.Height - 1; j++) { c = p.GetPixel(i, j); if (c.R >= 240 && c.R <= 255 && c.G >= 240 && c.G <= 255 && c.B >= 240 && c.B <= 255) { p.SetPixel(i, j, Color.Green); count[i, j] = 1; } if (c.R >= 200 && c.R <= 250 && c.G >= 150 && c.G <= 250 && c.B >= 90 && c.B <= 170) { pix = pix + 1; p.SetPixel(i, j, Color.Green); for (x = 0; x < 1; x++) { if (i + x < p.Width && j + x < p.Height) { p.SetPixel(i + x, j + x, Color.Red); } } } } }

2014-08-21

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除