本文介绍了定义和比较图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我正在做一个小项目(对我来说很重要,因为我几乎都是菜鸟)。我有这个soltaire游戏,当一张卡被捕获。我希望那张卡片用蓝色背景着色。换句话说,它已经被播放了。


您如何比较1张卡片,将黑桃王牌与另一张图片盒中的同一张卡片进行比较?含义卡片在一个图片盒中捕获,另一个图片盒将转换为某种颜色,使其消失。


我的伪代码是这样的:

如果pictbox1 = pictbox2那么

颜色即pictbox2为蓝色

否则让它可见

结束IF


所以真正的问题是我如何比较图像并定义它们,比如.bmp和图像框中的相同图像。


我可以在卡片上找到特定的十六进制颜色,然后pictbox2中的卡片就会消失。你会如何定义十六进制颜色?你会如何分析它?


很抱歉这个问题很多。如果您有问题我可以为您清理。


谢谢


PS使用vb.net 2005

Hi all,

I''m doing a little project (big for me because I''m pretty much a noob). I have this soltaire game and when a card is captured. I want that card to be colored with a blue background. In other words, that its been played.

How would you go about comparing 1 card say the ace of spades to that same card in another picturebox? Meaning The card is capture in one picturebox and the other picturebox will turn a certain color, making it disappear.

My pseudo code is something like this:
If pictbox1 = pictbox2 Then
color that pictbox2 to blue
Else leave it visible
End IF

So the real problem is how do I compare images and define them, like a .bmp to the same image as in ,say pictbox2.

Could I find a specific hex color on the card and then the card in pictbox2 disappears. How would you define hex color and how would you analzye it?

Sorry for the many questions. If you have a question I can clear it up for you.

Thanks

PS working with vb.net 2005

推荐答案



我认为你的问题非常复杂


你正在使用哪个数据库?


使用控制数组和差异图片


I think your problem is pretty complicated


which Database you are using?

use control array and diff pic in that





你的项目是扑克牌


is your project is an playing cards


这篇关于定义和比较图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 20:18