How do I get the hex color from an RBG color?

前端 未结 0 363
隐瞒了意图╮
隐瞒了意图╮ 2021-01-25 11:20

I am reading an image and getting its colors in RBG via image/color. However, I want to convert a color to hex triplet. How do I do this?

img, err :=         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题