.NET仅存在256色列表吗? [英] Is there a .NET list of 256 colors only?

查看:60
本文介绍了.NET仅存在256色列表吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Colors类公开了过于复杂的属性(即米色和我不需要的其他列)。

The Colors class exposes too complicated properties (i.e. beige and other column I don't need).

我只想要一个主色列表,或者在至少该列表应按极端性排序,即首先应包含明确的颜色,例如黑色,白色,红色,绿色,蓝色,然后应使用更复杂的组合,例如yello,橙色,紫色等。

I only want a list of the main colors, or at least the list should be ordered by extremeness, i.e. should first contain the explicit colors like black, white, red, green, blue, then should go to more complex combinations like yello, orange, purple, etc.

更新


相关:为每个字符串生成特定的颜色?


推荐答案

我认为对于主要颜色没有任何公认的定义,如果您只想收集某些颜色,则必须自己定义。此外,.Net颜色不是有序的,因此您必须创建自己的有序集合才能在其他颜色之前获得某些颜色。

I don't think there is any agreed-upon definition of what are "main" colors, if you want a collection of only certain colors you will have to define them yourself. Also, the .Net Colors are not ordered, so you will have to create your own ordered collection to get certain colors "before" others.

这篇关于.NET仅存在256色列表吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆