Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
color -> HEX
#5
Rockuman,
The color value for the palette is R + 256 * G + 256^2 * B. To get the hex value, you can use HEX$. One way would be
Code:
HexVal$ = "&H" + HEX$((256& * B + G) * 256 + R)   ' Notice the first 256 is a long
This isn't meant answer Diroga challenge, just Rockuman's question.
hrist Jesus came into the world to save sinners, of whom I am first.(I Timothy 1:15)

For God so loved the world, that He gave His only begotten Son,
that whoever believes in Him should not perish, but have eternal life.(John 3:16)
Reply


Messages In This Thread
color -> HEX - by Diroga - 02-18-2004, 07:24 AM
color -> HEX - by Agamemnus - 02-19-2004, 08:24 AM
color -> HEX - by Diroga - 02-19-2004, 09:45 AM
color -> HEX - by Rokkuman - 02-19-2004, 08:08 PM
color -> HEX - by SCM - 02-20-2004, 06:34 AM
color -> HEX - by Neo - 02-20-2004, 05:07 PM
color -> HEX - by Diroga - 02-21-2004, 05:21 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)