private void SetRGBLabels(ColorHandler.ARGB argb) { RefreshText(lblRed, argb.Red); RefreshText(lblBlue, argb.Blue); RefreshText(lblGreen, argb.Green); RefreshText(lblAlpha, argb.Alpha); tbHexCode.Text = string.Format("{0:X2}{1:X2}{2:X2}{3:X2}", argb.Alpha, argb.Red, argb.Green, argb.Blue); }
private void SetHSVLabels(ColorHandler.HSV HSV) { RefreshText(lblHue, HSV.Hue); RefreshText(lblSaturation, HSV.Saturation); RefreshText(lblValue, HSV.Value); RefreshText(lblAlpha, HSV.Alpha); }
private void SetRGB(ColorHandler.ARGB argb) { // Update the RGB values on the form. RefreshValue(tbRed, argb.Red); RefreshValue(tbBlue, argb.Blue); RefreshValue(tbGreen, argb.Green); RefreshValue(tbAlpha, argb.Alpha); SetRGBLabels(argb); }
private void SetHSV(ColorHandler.HSV HSV) { // Update the HSV values on the form. RefreshValue(tbHue, HSV.Hue); RefreshValue(tbSaturation, HSV.Saturation); RefreshValue(tbValue, HSV.Value); RefreshValue(tbAlpha, HSV.Alpha); SetHSVLabels(HSV); }