In fact, the two codes are the same... one is to operate BufferdImage and the other is to operate Bitmap Anyway, after taking out the color array int[] pixels, the algorithm will be the same.
Hello, have you done it? ? ? I also want to use Java to get the main color of the picture, but I don’t know what method to use, and I don’t know anything about githut.
Android version:
https://github.com/HenriqueRocha/android-colorthief/
Java version:
https://github.com/soualid/java-colorthief/
In fact, the two codes are the same... one is to operate BufferdImage and the other is to operate Bitmap
Anyway, after taking out the color array int[] pixels, the algorithm will be the same.
Hello, have you done it? ? ? I also want to use Java to get the main color of the picture, but I don’t know what method to use, and I don’t know anything about githut.
Here you go again. I added you on QQ before, but there was no response. I thought you had solved it.