// 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); }
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); }