Ejemplo n.º 1
0
//		public override int FilterIndex
//		{
//			get { return base.FilterIndex; }
//			set { base.FilterIndex = value; FIDX = value; }
//		}

        protected override XCom.XCImageCollection LoadFileOverride(
            string directory,
            string file,
            int imgWid,
            int imgHei,
            XCom.Palette pal)
        {
            OpenCustomForm ocf = new OpenCustomForm(directory, file);

            ocf.TryClick += new TryDecodeEventHandler(tryIt);
            ocf.Show();

            return(null);
        }
Ejemplo n.º 2
0
        protected override XCom.XCImageCollection LoadFileOverride(string directory, string file, int imgWid, int imgHei, XCom.Palette pal)
        {
            System.Drawing.Bitmap bmp = new System.Drawing.Bitmap(directory + "/" + file);
            BmpForm bmf = new BmpForm();

            bmf.Bitmap = bmp;

            if (bmf.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                imageSize = bmf.SelectedSize;

                return(XCom.Bmp.Load(bmp, pal, imageSize.Width, imageSize.Height, bmf.SelectedSpace));
            }

            return(null);
        }