QQ游戏美女找茬源代码

sjfujiang 2009-04-16 06:52:11
http://download.csdn.net/source/1179473
上面是下载的地址.需要6分.
由于大家的屏幕大小不一致.所以,两幅图的X坐标的差距会不一样.
这个X坐标的的差距怎么获得呢?
我用的方法是:挨个像素比较,但这样又造成了程序运算量大.有什么好的方法呢?
重点代码如下: 设置length的值.
public void GetLength(Bitmap bitm)
{
Rectangle rect = System.Windows.Forms.SystemInformation.VirtualScreen;

int xlen = rect.Width;
int ylen = rect.Height;
// MessageBox.Show(xlen + "asd" + ylen + "");
int x = xlen / 2;
int y = ylen / 2;


for (int i = 200; i < x; i = i + 10)
{
Color myColor = new Color();
Color myColor2 = new Color();
myColor = bitm.GetPixel(i, y);
string a = myColor.R + myColor.G + myColor.B.ToString();
for (int j = x; j < xlen; j = j + 1)
{

myColor2 = bitm.GetPixel(j, y);
string b = myColor2.R + myColor2.G + myColor2.B.ToString();

if (a == b)
{
flag = flag + 1;
if (flag % 2 == 0)
{
length1 = j - i;
}
else
{
length2 = j - i;
}

if (length1 == length2)
{
length = length1;
return;

}


}
}

}

}
...全文
987 17 打赏 收藏 转发到动态 举报
写回复
用AI写文章
17 条回复
切换为时间正序
请发表友善的回复…
发表回复
tsp860901 2009-04-17
  • 打赏
  • 举报
回复
weir55 2009-04-17
  • 打赏
  • 举报
回复
不错
51Crack 2009-04-17
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 AvalonXP 的回复:]
我把它放到这里给大家直接下载了:
http://snipurl.com/cppcode8828
[/Quote]
到处发这个地址,垃圾!




SIGNATURE:----------------------------------------------------------------------------------------



sciolist 2009-04-17
  • 打赏
  • 举报
回复
源码 泄漏?!
wengegehehe 2009-04-17
  • 打赏
  • 举报
回复
get(all score);
return;
冬你个冬 2009-04-17
  • 打赏
  • 举报
回复
UP
LGP88864237 2009-04-17
  • 打赏
  • 举报
回复
不错
createWang 2009-04-16
  • 打赏
  • 举报
回复
up...
yagebu1983 2009-04-16
  • 打赏
  • 举报
回复
up.....
a123553628 2009-04-16
  • 打赏
  • 举报
回复
学习 学习
过_路_人 2009-04-16
  • 打赏
  • 举报
回复
路过````
freewind0521 2009-04-16
  • 打赏
  • 举报
回复
不错接分
AvalonXP 2009-04-16
  • 打赏
  • 举报
回复
我把它放到这里给大家直接下载了:
http://snipurl.com/cppcode8828
悔说话的哑巴 2009-04-16
  • 打赏
  • 举报
回复
来点分
yhy0611 2009-04-16
  • 打赏
  • 举报
回复
接点分
tsp860901 2009-04-16
  • 打赏
  • 举报
回复
路过。。。
yooyoozoo 2009-04-16
  • 打赏
  • 举报
回复
这也可以?~~~~支持下

111,126

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧