DR00ME Posted February 6, 2004 Posted February 6, 2004 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! Quote "Everything should be made as simple as possible, but not simpler." "It's not that I'm so smart , it's just that I stay with problems longer ." - Albert Einstein
Leaders dynamic_sysop Posted February 6, 2004 Leaders Posted February 6, 2004 if you want to retrieve the R G B values of a given color ... MessageBox.Show((Color.Crimson.R & " " & Color.Crimson.G & " " & Color.Crimson.B).ToString) '/// seperate the R G B ^^^ Quote
DR00ME Posted February 7, 2004 Author Posted February 7, 2004 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 Quote "Everything should be made as simple as possible, but not simpler." "It's not that I'm so smart , it's just that I stay with problems longer ." - Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.