or a better way:
currentEntry.Text = String.Format("#{0:X2}{1:X2}{2:X2}", (int)Math.Truncate(colorSelector.CurrentColor.Red / 256.00), (int)Math.Truncate(colorSelector.CurrentColor.Green / 256.00), (int)Math.Truncate(colorSelector.CurrentColor.Blue / 256.00));
The first one is probably more processor efficient.
ReplyDeleteIs String a Glib ustring?
ReplyDelete