保存在一个ColorDialog类色板在C#Windows应用程序 [英] Save the Swatches on a ColorDialog in a C# Windows Application
问题描述
我有哪里System.Windows.Forms.ColorDialog对话框作为一个颜色选择器的应用程序。反正是有,我可以(1)保存用户保存样本此对话框或(2)建立一套标准色板,当他们打开拾色器的所有用户将看到一节中的自定义颜色?
I have an application where the System.Windows.Forms.ColorDialog dialog box is used as a color picker. Is there anyway that I can either (1) save the swatches the user saves in the "Custom Colors" section of this dialog or (2) create a standard set of swatches that all users would see when they open the color picker?
推荐答案
我刚存储的RGB值,每个样本一个用户控件。你可以很容易地存储自定义色板像,以及
I have a UserControl that just stores the RGB values for each swatch. You could easily store Custom swatches like that, as well.
编辑:哦,居然回答你的问题,来看看:
Oh, and to actually answer your question, take a look at:
这篇关于保存在一个ColorDialog类色板在C#Windows应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!