开发者

Sort Hex Color Values

开发者 https://www.devze.com 2023-04-05 07:44 出处:网络
I have a color table related to products. The value of colors which is a hexadecimal is saved in a nvarchar field.

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

精彩评论

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