|
-
Oct 10th, 2002, 05:30 AM
#1
Thread Starter
Hyperactive Member
How to get RGB out of for ex. &H00C0FFFF&
How do I get the Red Green and Blue values out of a string like this:
&H00C0FFFF&
I know it is possible, but I can't find it. Can someone help me?
Thnx in advance
-
Oct 10th, 2002, 05:36 AM
#2
PowerPoster
C0FFFF is the RGB portion. use mid to strip it out & then to separate the components (into C0, FF, and FF), if you wish.
-
Oct 10th, 2002, 05:39 AM
#3
Fanatic Member
there's lots of threads with code on these forums, just do a search.
-
Oct 10th, 2002, 05:45 AM
#4
Fanatic Member
-
Oct 10th, 2002, 07:51 AM
#5
Addicted Member
VB Code:
lngColor = &H00C0FFFF&
Red = (lngColor And &HFF)
Green = (lngColor And &HFFFF&) / &H100
Blue = (lngColor And &HFFFFFF) / &H10000
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|