gpt4 book ai didi

actionscript-3 - 比较两个图像并检查相等性

转载 作者:行者123 更新时间:2023-12-04 06:40:37 25 4
gpt4 key购买 nike

您知道有关在 as3/flash 中比较图像的任何来源或信息吗?

我想比较两个图像并检查图像是否相同。

检查这个例子:
http://imageshack.us/photo/my-images/825/imagecompare.jpg/

有什么线索吗?先感谢您!

最佳答案

使用 BitmapData.compare() 将返回 0如果像素值相同。

trace(bmd1.compare(bmd2)); // 0

关于actionscript-3 - 比较两个图像并检查相等性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13401773/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com