在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:tangdiforx/iOSPalette开源软件地址:https://github.com/tangdiforx/iOSPalette开源编程语言:Objective-C 100.0%开源软件介绍:iOSPalette0.1 TODOPlease open an issue if you want some new feature. 0.2 Change Log
1.IntroductionObjective-C version of Google Palette algorithm in Java.A tool to extract the main color of a image.Compare to traditional algorithm,iOSPalette can help you extract the main color which is more likely to be "The Main Color".It is not always the largest in pixel numbers. For Chinese user,you can tap the article iOS图片精确提取主色调算法iOS-Palette.It will be helpul. 2.Why iOS-Palette1.It always help you to extract the color you want,no the largest in the pixel count.Just like this case:You can see the 6 TargetMode from the demo screenshot.They are distinguished by different Saturation and Lightness (According to HSL Color Mode).
You can get every target mode color thourgh the iOSPalette API if you need! 2.It helps to combine every single RGB Value into a VBox,then calculate the most representational color.3.How to use iOS-PaletteYou can get these simple API in Palette.h and UIImage+Palette.h: If you need all target mode info, you can use these API in Palette.h and UIImage.Palette.h: Then you all get the callback with all color infomation you want:
4.Demo1.Before white background: 2.In the normal illumination: 5.Contact meif you have any question,you can contact me thourgh the contact infomation below.Or open a issue on Github.I will solve it as soon as possible!Best wishes! Zhihu:知乎 Email:[email protected] 简书:Tap Here |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论