How can I get the average colour of an image

后端 未结 6 538
温柔的废话
温柔的废话 2020-12-07 16:57

I want to be able to take an image and find out what is the average colour. meaning if the image is half black half white, I would get something in between... some shade of

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-07 17:19

    There is also a library that can do this for you.

    http://www.michaelevans.org/blog/2013/12/12/colorart-a-library-to-do-itunes-11-style-color-matching-for-android/

提交回复
热议问题