Extracting RGB values from a color
-
I am receiving an RGB color in a method. 1) I want to strip the color into it's fundamental components. 2) I want to store these values as integers within the method. Ex. the method gets the color RGB (55, 155, 255) I want to extract the numbers into variables. int red = 55; int green = 155; int blue = 255; ====================================================== Any suggestions on how to strip the color into it's seperate RGB values???? I've done this before but I can't remember. George W Software Developer www.zsystems.ca
-
I am receiving an RGB color in a method. 1) I want to strip the color into it's fundamental components. 2) I want to store these values as integers within the method. Ex. the method gets the color RGB (55, 155, 255) I want to extract the numbers into variables. int red = 55; int green = 155; int blue = 255; ====================================================== Any suggestions on how to strip the color into it's seperate RGB values???? I've done this before but I can't remember. George W Software Developer www.zsystems.ca
-
I am receiving an RGB color in a method. 1) I want to strip the color into it's fundamental components. 2) I want to store these values as integers within the method. Ex. the method gets the color RGB (55, 155, 255) I want to extract the numbers into variables. int red = 55; int green = 155; int blue = 255; ====================================================== Any suggestions on how to strip the color into it's seperate RGB values???? I've done this before but I can't remember. George W Software Developer www.zsystems.ca
GetBValue, GetGValue and GetRValue Magnus
-
GetBValue, GetGValue and GetRValue Magnus
That's it!!!! Thanks for your help. George W Software Developer www.zsystems.ca