C#
2012.12.04 17:45

C# Color Table

조회 수 18883 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print

struct System.Drawing.Color Table

(사용 예)

System.Windows.Forms.ListViewItem listViewItem

= new System.Windows.Forms.ListViewItem(new string[] {});

listViewItem.BackColor = Color.colorname;

-----------------------------------------------------------------------------------------

출처 : http://www.flounder.com/csharp_color_table.htm

The following color codes are taken from the HTML specifications, whose names correspond to the names given for the .KnownColor attributes. For example, to get one of these color schemes, you would write

Color c = Color.FromKnownColor(KnownColor.colorname)

where colorname is from the table below. The values are also supplied; so you could use the FromArgb method to create the color. The following two lines produce the same color:

Color c1 = Color.FromArgb(32,178,170);
Color c2 = Color.FromKnownColor(KnownColor.LightSeaGreen);

In the table, I have assigned the exact color values given. The rendering you actually see will depend upon whether or not your browser honors 24-bit color requests (some browsers will map colors to the "nearest Web palette color"), the adjustments to your monitor, and the corrections your video card applies. Your Mileage May Vary.

.AliceBlue
240,248,255
.LightSalmon
255,160,122
.AntiqueWhite
250,235,215
.LightSeaGreen
32,178,170
.Aqua
0,255,255
.LightSkyBlue
135,206,250
.Aquamarine
127,255,212
.LightSlateGray
119,136,153
.Azure
240,255,255
.LightSteelBlue
176,196,222
.Beige
245,245,220
.LightYellow
255,255,224
.Bisque
255,228,196
.Lime
0,255,0
.Black
0,0,0
.LimeGreen
50,205,50
.BlanchedAlmond
255,255,205
.Linen
250,240,230
.Blue
0,0,255
.Magenta
255,0,255
.BlueViolet
138,43,226
.Maroon
128,0,0
.Brown
165,42,42
.MediumAquamarine
102,205,170
.BurlyWood
222,184,135
.MediumBlue
0,0,205
.CadetBlue
95,158,160
.MediumOrchid
186,85,211
.Chartreuse
127,255,0
.MediumPurple
147,112,219
.Chocolate
210,105,30
.MediumSeaGreen
60,179,113
.Coral
255,127,80
.MediumSlateBlue
123,104,238
.CornflowerBlue
100,149,237
.MediumSpringGreen
0,250,154
.Cornsilk
255,248,220
.MediumTurquoise
72,209,204
.Crimson
220,20,60
.MediumVioletRed
199,21,112
.Cyan
0,255,255
.MidnightBlue
25,25,112
.DarkBlue
0,0,139
.MintCream
245,255,250
.DarkCyan
0,139,139
.MistyRose
255,228,225
.DarkGoldenrod
184,134,11
.Moccasin
255,228,181
.DarkGray
169,169,169
.NavajoWhite
255,222,173
.DarkGreen
0,100,0
.Navy
0,0,128
.DarkKhaki
189,183,107
.OldLace
253,245,230
.DarkMagena
139,0,139
.Olive
128,128,0
.DarkOliveGreen
85,107,47
.OliveDrab
107,142,45
.DarkOrange
255,140,0
.Orange
255,165,0
.DarkOrchid
153,50,204
.OrangeRed
255,69,0
.DarkRed
139,0,0
.Orchid
218,112,214
.DarkSalmon
233,150,122
.PaleGoldenrod
238,232,170
.DarkSeaGreen
143,188,143
.PaleGreen
152,251,152
.DarkSlateBlue
72,61,139
.PaleTurquoise
175,238,238
.DarkSlateGray
40,79,79
.PaleVioletRed
219,112,147
.DarkTurquoise
0,206,209
.PapayaWhip
255,239,213
.DarkViolet
148,0,211
.PeachPuff
255,218,155
.DeepPink
255,20,147
.Peru
205,133,63
.DeepSkyBlue
0,191,255
.Pink
255,192,203
.DimGray
105,105,105
.Plum
221,160,221
.DodgerBlue
30,144,255
.PowderBlue
176,224,230
.Firebrick
178,34,34
.Purple
128,0,128
.FloralWhite
255,250,240
.Red
255,0,0
.ForestGreen
34,139,34
.RosyBrown
188,143,143
.Fuschia
255,0,255
.RoyalBlue
65,105,225
.Gainsboro
220,220,220
.SaddleBrown
139,69,19
.GhostWhite
248,248,255
.Salmon
250,128,114
.Gold
255,215,0
.SandyBrown
244,164,96
.Goldenrod
218,165,32
.SeaGreen
46,139,87
.Gray
128,128,128
.Seashell
255,245,238
.Green
0,128,0
.Sienna
160,82,45
.GreenYellow
173,255,47
.Silver
192,192,192
.Honeydew
240,255,240
.SkyBlue
135,206,235
.HotPink
255,105,180
.SlateBlue
106,90,205
.IndianRed
205,92,92
.SlateGray
112,128,144
.Indigo
75,0,130
.Snow
255,250,250
.Ivory
255,240,240
.SpringGreen
0,255,127
.Khaki
240,230,140
.SteelBlue
70,130,180
.Lavender
230,230,250
.Tan
210,180,140
.LavenderBlush
255,240,245
.Teal
0,128,128
.LawnGreen
124,252,0
.Thistle
216,191,216
.LemonChiffon
255,250,205
.Tomato
253,99,71
.LightBlue
173,216,230
.Turquoise
64,224,208
.LightCoral
240,128,128
.Violet
238,130,238
.LightCyan
224,255,255
.Wheat
245,222,179
.LightGoldenrodYellow
250,250,210
.White
255,255,255
.LightGreen
144,238,144
.WhiteSmoke
245,245,245
.LightGray
211,211,211
.Yellow
255,255,0
.LightPink
255,182,193
.YellowGreen
154,205,50


Dreamy의 코드 스크랩

내가 모으고 내가 보는

List of Articles
번호 분류 제목 날짜 조회 수 추천 수
446 Android 약정 벗은 안드로이드, 서버가 되다 2014.05.09 9655 0
445 Pi 안면인식, 동작인식을위한 OpenCV 설치 및 샘플 2017.10.18 6704 0
444 Android 안드로이드에서 Database를 다뤄보자 2015.03.03 17390 0
443 Android 안드로이드에 우분투 설치하기 3 2014.05.09 12568 0
442 Android 안드로이드 키 이벤트 (adb shell로 보내는 법) 2014.01.04 48971 0
441 Android 안드로이드 웨어 디자인 (Android Wear Design) [Korean] 2015.02.25 6940 0
440 Android 안드로이드 어플리케이션의 메모리 사용량을 확인하는 방법 2012.09.03 28985 0
439 Android 안드로이드 스마트 폰 화면 미러링: scrcpy 사용법 2021.08.18 37792 0
438 Android 안드로이드 소스에서 shell 명령어 실행하기 2014.12.30 7253 0
437 Android 안드로이드 국가별 언어코드 2020.10.06 4729 0
436 Android 안드로이드 init.rc 문법 2014.02.17 27698 0
435 일반 아스키 코드표 file 2006.01.04 43681 0
434 일반 아마존 '알렉사 Alexa' 명령어 모음 2017.08.04 24319 0
433 Pi 아두이노의 인터럽트 (interrupt) 사용 2017.04.13 14594 0
432 Pi 아두이노에 도움이 되는 전자부품들 2018.06.20 5827 0
목록
Board Pagination ‹ Prev 1 2 3 4 5 6 7 8 9 10 ... 34 Next ›
/ 34

나눔글꼴 설치 안내


이 PC에는 나눔글꼴이 설치되어 있지 않습니다.

이 사이트를 나눔글꼴로 보기 위해서는
나눔글꼴을 설치해야 합니다.

설치 취소

Designed by sketchbooks.co.kr / sketchbook5 board skin

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5

Sketchbook5, 스케치북5