【问题标题】:How to detect the color of an image using AS3 and adobe air?如何使用 AS3 和 adobe air 检测图像的颜色?
【发布时间】:2015-01-12 14:40:47
【问题描述】:

我很难找到有关如何使用 adobe air 检测从手机摄像头拍摄的图像颜色的任何数据。这个想法是用户拍摄一张图像,然后应用程序(使用此代码)通过将光标放在它上面来检测用户拍摄的项目的颜色。 那么有人请告诉我如何在 adobe air 和 action script 3 中实现这一点。 非常感谢!!!!

【问题讨论】:

  • 图片是否填充了纯色?

标签: actionscript-3 image-processing colors air


【解决方案1】:

您可以使用来自 BitmapData() enter link description here 的 getPixel 或 getPixel32

如果您愿意,可以将其转换为 HEX。

【讨论】:

    猜你喜欢
    • 2021-08-17
    • 2011-12-05
    • 2013-05-02
    • 1970-01-01
    • 2013-07-04
    • 2018-07-16
    • 2012-04-27
    • 2019-05-12
    • 1970-01-01
    相关资源
    最近更新 更多