Someone please help me with this RGB problem...

DR00ME

Well-known member
Joined
Feb 6, 2004
Messages
169
Location
Finland
the problem is that i cant separate R,G,B components from color.tostring .... the string looks something like this "Color [A=255, R=255, G=255, B=255]" now i cant get those components to int variables.... notice the string lenght is changing when the RGB values change... I also tried this ToArgb but it gave me weird readings like -16777232 how do u read it ? is it hex or what ? is the colors in random order ? im trying to do a proggy which can identify colors and play the color from .wav ...but the colors can vary...i need a scale for the colors... e.g. from dark blue to light blue....if the RGB value match in that RGB scale the proggy consider the color as e.g. blue and play the blue.wav... i really need help with this one.... so suprise me! sorry for my bad english!
 
if you want to retrieve the R G B values of a given color ...
Code:
        MessageBox.Show((Color.Crimson.R & " " & Color.Crimson.G & " " & Color.Crimson.B).ToString)
        /// seperate the R G B ^^^
 
lol

you really saved my day... I also noticed how dumb I am LOL ..I never payed attention to those properties like .R .G .B ... i just tried to find a function ! anyway THX A LOT! :D
 
Back
Top