Toon posts:

[VB] RGB >> HEX

Pagina: 1
Acties:
  • 42 views sinds 30-01-2008

Verwijderd

Topicstarter
best handig stukje :
code:
1
2
3
4
5
6
7
8
Dim r, G, b
r = Hex(Color Mod 256)
G = Hex((Color \ 256) Mod 256)
b = Hex(Color \ 65536)
If Len(r) < 2 Then r = "0" & r
If Len(G) < 2 Then G = "0" & G
If Len(b) < 2 Then b = "0" & b
GetHexVal = "#" & r & G & b

  • whoami
  • Registratie: December 2000
  • Laatst online: 22:16
Waarschijnlijk wel.... wat wil je hier nu mee bewijzen?

https://fgheysels.github.io/


Dit topic is gesloten.