private void tsmiCopyDecimal_Click(object sender, EventArgs e) { int dec = ColorHelpers.ColorToDecimal(colorPicker.SelectedColor, ColorFormat.RGB); ClipboardHelpers.CopyText(dec.ToString()); }
private void tsmiCopyPosition_Click(object sender, EventArgs e) { ClipboardHelpers.CopyText($"{txtX.Text}, {txtY.Text}"); }
private void tsmiCopyCMYK_Click(object sender, EventArgs e) { CMYK cmyk = colorPicker.SelectedColor.CMYK; ClipboardHelpers.CopyText($"{cmyk.Cyan100:0.0}%, {cmyk.Magenta100:0.0}%, {cmyk.Yellow100:0.0}%, {cmyk.Key100:0.0}%"); }
private void tsmiCopyHSB_Click(object sender, EventArgs e) { HSB hsb = colorPicker.SelectedColor.HSB; ClipboardHelpers.CopyText($"{hsb.Hue360:0.0}°, {hsb.Saturation100:0.0}%, {hsb.Brightness100:0.0}%"); }
private void tsmiCopyHexadecimal_Click(object sender, EventArgs e) { string hex = ColorHelpers.ColorToHex(colorPicker.SelectedColor, ColorFormat.RGB); ClipboardHelpers.CopyText("#" + hex); }
private void tsmiCopyRGB_Click(object sender, EventArgs e) { RGBA rgba = colorPicker.SelectedColor.RGBA; ClipboardHelpers.CopyText($"{rgba.Red}, {rgba.Green}, {rgba.Blue}"); }
private void btnCopyAll_Click(object sender, EventArgs e) { string text = rtbDebug.Text.Trim(); ClipboardHelpers.CopyText(text); }
private void tsmiImportClipboard_Click(object sender, EventArgs e) { string json = ClipboardHelpers.GetText(true); ImportJson(json); }
private void btnClearClipboard_Click(object sender, EventArgs e) { ClipboardHelpers.Clear(); RefreshClipboardContentList(); }