Exemple #1
0
        public MainPage()
        {
            temp = new C2n();
            temp.initRGB_HSL();

            hc = temp.clr_name("#FBF84B");


            this.InitializeComponent();
            textblock1.Text = hc.name_closest;
        }
Exemple #2
0
        private void Init_Vars_NoComp()
        {
            /* Puting default instrument piano - user will be able to change it later */
            c2u = new Color2Uri.Color2Uri("Piano");
            // No need to call init since the constructor does it , need to tweak methods from public to private
            //c2u.Init();
            temp = new C2n();
            temp.initRGB_HSL();

            i_rs = new InMemoryRandomAccessStream();

            ie_prop = new ImageEncodingProperties();
        }