S/W 개발2018.08.03 16:52

BIT / HEXA 연산

<범례>

BIT                             *  지정  BIT   값을 방법

HEX                             * 지정  HEXA 값을 변경.


* 지정 비트를 1로 만드는 방법  (+)

bitwise OR 오퍼레이터 (|)를 사용해 변경.  


BIT     number |= << n               n번째 비트를 1로 설정됨

HEX      number |= 0xHH             0xHH 값을 더해줌..


* 지정 비트를 0으로 만드는 방법     (-)

bitwise AND 오퍼레이터(&)를 사용해 변경


BIT     number &= ~(1<< n)          n번째 비트를 0으로 설정됨

HEX      number &= ~(0xHH)          0xHH 값을 빼줌..


* 지정 비트가 0이면 1, 1이면 0으로 만드는 방법  (XOR)

XOR 오퍼레이터 (^) 를 사용해 변경


BIT     number ^= 1 << n          n번째 비트가 1이면 0, 0이면 1으로 설정됨.

HEX      number ^= 0xHH           값의 비트를 반대로 설정


* n번째 비트를 알아내는 방법                  (CHECK)

bitwise AND 오퍼레이터(&)를 사용해 변경


BIT     (number >> n) & 1          n번째 비트가 1이면 1을, 0면 0을 리턴함.

HEX      number & 0xHH             0xHH 값이 존재하면 1 없으면  0


'S/W 개발' 카테고리의 다른 글

비트, HEXA 연산하기  (0) 2018.08.03
종료시 사용되는 함수의 차이점  (0) 2009.09.14
Posted by 가희나희아빠 희자매(가희나희)아빠
S/W 개발/Embarcadero2018.07.03 16:07

VCL 기본 색상 정의표

VCL 이름

색상표

색상

지정명

색상

clNone

$1FFFFFFF

 

NONE

 

clAqua

$FFFF00

 

AQUA

 

clBlack

$0

 

BLACK

 

clBlue

$FF0000

 

BLUE

 

clCream

$F0FBFF

 

CREAM

 

clDkGray

$808,080

 

DKGRAY

 

clFuchsia

$FF00FF

 

FUCHSIA

 

clGray

$808,080

 

GRAY

 

clGreen

$8,000

 

GREEN

 

clLime

$00FF00

 

LIME

 

clLtGray

$C0C0C0

 

LTGRAY

 

clMaroon

$80

 

MAROON

 

clMedGray

$A4A0A0

 

MEDGRAY

 

clMoneyGreen

$C0DCC0

 

MONEYGREEN

 

clNavy

$800,000

 

NAVY

 

clOlive

$8,080

 

OLIVE

 

clPurple

$800,080

 

PURPLE

 

clRed

$0000FF

 

RED

 

clSilver

$C0C0C0

 

SILVER

 

clSkyBlue

$F0CAA6

 

SKYBLUE

 

clTeal

$808,000

 

TEAL

 

clWhite

$FFFFFF

 

WHITE

 

clYellow

$00FFFF

 

YELLOW

 

 

clWebAliceBlue

$FFF8F0

 

WEBALICEBLUE

 

clWebAntiqueWhite

$D7EBFA

 

WEBANTIQUEWHITE

 

clWebAqua

$FFFF00

 

WEBAQUA

 

clWebAquamarine

$D4FF7F

 

WEBAQUAMARINE

 

clWebAzure

$FFFFF0

 

WEBAZURE

 

clWebBeige

$DCF5F5

 

WEBBEIGE

 

clWebBisque

$C4E4FF

 

WEBBISQUE

 

clWebBlack

$0

 

WEBBLACK

 

clWebBlanchedAlmond

$CDEBFF

 

WEBBLANCHEDALMOND

 

clWebBlue

$FF0000

 

WEBBLUE

 

clWebBlueViolet

$E22B8A

 

WEBBLUEVIOLET

 

clWebBrown

$2A2AA5

 

WEBBROWN

 

clWebBurlywood

$87B8DE

 

WEBBURLYWOOD

 

clWebCadetBlue

$A09E5F

 

WEBCADETBLUE

 

clWebChartreuse

$00FF7F

 

WEBCHARTREUSE

 

clWebChocolate

$1E69D2

 

WEBCHOCOLATE

 

clWebCoral

$507FFF

 

WEBCORAL

 

clWebCornFlowerBlue

$ED9564

 

WEBCORNFLOWERBLUE

 

clWebCornSilk

$DCF8FF

 

WEBCORNSILK

 

clWebCrimson

$3C14DC

 

WEBCRIMSON

 

clWebCyan

$FFFF00

 

WEBCYAN

 

clWebDarkBlue

$8B0000

 

WEBDARKBLUE

 

clWebDarkCyan

$8B8B00

 

WEBDARKCYAN

 

clWebDarkGoldenRod

$0B86B8

 

WEBDARKGOLDENROD

 

clWebDarkGray

$A9A9A9

 

WEBDARKGRAY

 

clWebDarkgreen

$6,400

 

WEBDARKGREEN

 

clWebDarkKhaki

$6BB7BD

 

WEBDARKKHAKI

 

clWebDarkMagenta

$8B008B

 

WEBDARKMAGENTA

 

clWebDarkOliveGreen

$2F6B55

 

WEBDARKOLIVEGREEN

 

clWebDarkOrange

$008CFF

 

WEBDARKORANGE

 

clWebDarkOrchid

$CC3299

 

WEBDARKORCHID

 

clWebDarkRed

$00008B

 

WEBDARKRED

 

clWebDarkSalmon

$7A96E9

 

WEBDARKSALMON

 

clWebDarkSeaGreen

$8FBC8F

 

WEBDARKSEAGREEN

 

clWebDarkSlateBlue

$8B3D48

 

WEBDARKSLATEBLUE

 

clWebDarkSlategray

$4F4F2F

 

WEBDARKSLATEGRAY

 

clWebDarkTurquoise

$D1CE00

 

WEBDARKTURQUOISE

 

clWebDarkViolet

$D30094

 

WEBDARKVIOLET

 

clWebDeepPink

$9314FF

 

WEBDEEPPINK

 

clWebDeepskyBlue

$FFBF00

 

WEBDEEPSKYBLUE

 

clWebDimGray

$696,969

 

WEBDIMGRAY

 

clWebDodgerBlue

$FF901E

 

WEBDODGERBLUE

 

clWebFirebrick

$2222B2

 

WEBFIREBRICK

 

clWebFloralWhite

$F0FAFF

 

WEBFLORALWHITE

 

clWebForestGreen

$228B22

 

WEBFORESTGREEN

 

clWebFuchsia

$FF00FF

 

WEBFUCHSIA

 

clWebGainsboro

$DCDCDC

 

WEBGAINSBORO

 

clWebGhostWhite

$FFF8F8

 

WEBGHOSTWHITE

 

clWebGold

$00D7FF

 

WEBGOLD

 

clWebGoldenRod

$20A5DA

 

WEBGOLDENROD

 

clWebGray

$808,080

 

WEBGRAY

 

clWebGreen

$8,000

 

WEBGREEN

 

clWebGreenYellow

$2FFFAD

 

WEBGREENYELLOW

 

clWebHoneydew

$F0FFF0

 

WEBHONEYDEW

 

clWebHotPink

$B469FF

 

WEBHOTPINK

 

clWebIndianRed

$5C5CCD

 

WEBINDIANRED

 

clWebIndigo

$82004B

 

WEBINDIGO

 

clWebIvory

$F0FFFF

 

WEBIVORY

 

clWebKhaki

$8CE6F0

 

WEBKHAKI

 

clWebLavender

$FAE6E6

 

WEBLAVENDER

 

clWebLavenderBlush

$F5F0FF

 

WEBLAVENDERBLUSH

 

clWebLawnGreen

$00FC7C

 

WEBLAWNGREEN

 

clWebLemonChiffon

$CDFAFF

 

WEBLEMONCHIFFON

 

clWebLightBlue

$E6D8AD

 

WEBLIGHTBLUE

 

clWebLightCoral

$8080F0

 

WEBLIGHTCORAL

 

clWebLightCyan

$FFFFE0

 

WEBLIGHTCYAN

 

clWebLightGoldenrodYellow

$D2FAFA

 

WEBLIGHTGOLDENRODYELLOW

 

clWebLightGreen

$90EE90

 

WEBLIGHTGREEN

 

clWebLightgrey

$D3D3D3

 

WEBLIGHTGREY

 

clWebLightPink

$C1B6FF

 

WEBLIGHTPINK

 

clWebLightSalmon

$7AA0FF

 

WEBLIGHTSALMON

 

clWebLightSeaGreen

$AAB220

 

WEBLIGHTSEAGREEN

 

clWebLightSkyBlue

$FACE87

 

WEBLIGHTSKYBLUE

 

clWebLightSlateGray

$998,877

 

WEBLIGHTSLATEGRAY

 

clWebLightSteelBlue

$DEC4B0

 

WEBLIGHTSTEELBLUE

 

clWebLightYellow

$E0FFFF

 

WEBLIGHTYELLOW

 

clWebLime

$00FF00

 

WEBLIME

 

clWebLimeGreen

$32CD32

 

WEBLIMEGREEN

 

clWebLinen

$E6F0FA

 

WEBLINEN

 

clWebMagenta

$FF00FF

 

WEBMAGENTA

 

clWebMaroon

$80

 

WEBMAROON

 

clWebMediumAquamarine

$AACD66

 

WEBMEDIUMAQUAMARINE

 

clWebMediumBlue

$CD0000

 

WEBMEDIUMBLUE

 

clWebMediumOrchid

$D355BA

 

WEBMEDIUMORCHID

 

clWebMediumPurple

$DB7093

 

WEBMEDIUMPURPLE

 

clWebMediumSeaGreen

$71B33C

 

WEBMEDIUMSEAGREEN

 

clWebMediumSlateBlue

$EE687B

 

WEBMEDIUMSLATEBLUE

 

clWebMediumSpringGreen

$9AFA00

 

WEBMEDIUMSPRINGGREEN

 

clWebMediumTurquoise

$CCD148

 

WEBMEDIUMTURQUOISE

 

clWebMediumVioletRed

$8515C7

 

WEBMEDIUMVIOLETRED

 

clWebMidnightBlue

$701,919

 

WEBMIDNIGHTBLUE

 

clWebMintcream

$FAFFF5

 

WEBMINTCREAM

 

clWebMistyRose

$E1E4FF

 

WEBMISTYROSE

 

clWebMoccasin

$B5E4FF

 

WEBMOCCASIN

 

clWebNavajoWhite

$ADDEFF

 

WEBNAVAJOWHITE

 

clWebNavy

$800,000

 

WEBNAVY

 

clWebOldLace

$E6F5FD

 

WEBOLDLACE

 

clWebOlive

$8,080

 

WEBOLIVE

 

clWebOliveDrab

$238E6B

 

WEBOLIVEDRAB

 

clWebOrange

$00A5FF

 

WEBORANGE

 

clWebOrangeRed

$0045FF

 

WEBORANGERED

 

clWebOrchid

$D670DA

 

WEBORCHID

 

clWebPaleGoldenrod

$AAE8EE

 

WEBPALEGOLDENROD

 

clWebPaleGreen

$98FB98

 

WEBPALEGREEN

 

clWebPaleTurquoise

$EEEEAF

 

WEBPALETURQUOISE

 

clWebPaleVioletRed

$9370DB

 

WEBPALEVIOLETRED

 

clWebPapayaWhip

$D5EFFF

 

WEBPAPAYAWHIP

 

clWebPeachPuff

$B9DAFF

 

WEBPEACHPUFF

 

clWebPeru

$3F85CD

 

WEBPERU

 

clWebPink

$CBC0FF

 

WEBPINK

 

clWebPlum

$DDA0DD

 

WEBPLUM

 

clWebPowderBlue

$E6E0B0

 

WEBPOWDERBLUE

 

clWebPurple

$800,080

 

WEBPURPLE

 

clWebRed

$0000FF

 

WEBRED

 

clWebRosyBrown

$8F8FBC

 

WEBROSYBROWN

 

clWebRoyalBlue

$E16941

 

WEBROYALBLUE

 

clWebSaddleBrown

$13458B

 

WEBSADDLEBROWN

 

clWebSalmon

$7280FA

 

WEBSALMON

 

clWebSandyBrown

$60A4F4

 

WEBSANDYBROWN

 

clWebSeaGreen

$578B2E

 

WEBSEAGREEN

 

clWebSeashell

$EEF5FF

 

WEBSEASHELL

 

clWebSienna

$2D52A0

 

WEBSIENNA

 

clWebSilver

$C0C0C0

 

WEBSILVER

 

clWebSkyBlue

$EBCE87

 

WEBSKYBLUE

 

clWebSlateBlue

$CD5A6A

 

WEBSLATEBLUE

 

clWebSlateGray

$908,070

 

WEBSLATEGRAY

 

clWebSnow

$FAFAFF

 

WEBSNOW

 

clWebSpringGreen

$7FFF00

 

WEBSPRINGGREEN

 

clWebSteelBlue

$B48246

 

WEBSTEELBLUE

 

clWebTan

$8CB4D2

 

WEBTAN

 

clWebTeal

$808,000

 

WEBTEAL

 

clWebThistle

$D8BFD8

 

WEBTHISTLE

 

clWebTomato

$4763FF

 

WEBTOMATO

 

clWebTurquoise

$D0E040

 

WEBTURQUOISE

 

clWebViolet

$EE82EE

 

WEBVIOLET

 

clWebWheat

$B3DEF5

 

WEBWHEAT

 

clWebWhite

$FFFFFF

 

WEBWHITE

 

clWebWhiteSmoke

$F5F5F5

 

WEBWHITESMOKE

 

clWebYellow

$00FFFF

 

WEBYELLOW

 

clWebYellowGreen

$32CD9A

 

WEBYELLOWGREEN

 


Posted by 가희나희아빠 희자매(가희나희)아빠

티스토리 툴바