コード例 #1
0
        public ColorPaletteWidget()
        {
            // Insert initialization code here.
            this.AddEvents ((int)Gdk.EventMask.ButtonPressMask);

            swap_icon = PintaCore.Resources.GetIcon ("ColorPalette.SwapIcon.png");
            palette = PintaCore.Palette.CurrentPalette;
        }
コード例 #2
0
ファイル: ColorPaletteWidget.cs プロジェクト: JoeyScarr/Pinta
        public ColorPaletteWidget(bool vertical)
        {
            // Insert initialization code here.
            this.AddEvents ((int)Gdk.EventMask.ButtonPressMask);

            swap_icon = PintaCore.Resources.GetIcon ("ColorPalette.SwapIcon.png");
            palette = PintaCore.Palette.CurrentPalette;

            HasTooltip = true;
            QueryTooltip += HandleQueryTooltip;

            this.vertical = vertical;
        }
コード例 #3
0
ファイル: Palette.cs プロジェクト: RudoCris/Pinta
		public static Palette FromFile (string fileName)
		{
			Palette p = new Palette ();
			p.Load (fileName);
			return p;
		}
コード例 #4
0
ファイル: Palette.cs プロジェクト: RudoCris/Pinta
		public static Palette GetDefault ()
		{
			Palette p = new Palette ();
			p.LoadDefault ();
			return p;
		}