开发者

Sort Hex Color Values

I have a color table related to products. The value of colors which is a hexadecimal is saved in a nvarchar field.

In the products section I have a dropdown List for colors of a specified product.

So I need to sort these colors from lighter to darker...

I'm using MVC 3.0 and writting C开发者_运维技巧# code.


You want to get their intensity, so convert from RGB to HSV. See this post for more details.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜