//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; }
public TryDecodeEventArgs(int width, int height, string directory, string file, XCom.Interfaces.IXCImageFile itm) { this.itm=itm; this.file=file; this.width=width; this.height=height; this.directory=directory; }
public cbItem(XCom.Interfaces.IXCImageFile itm, string text) { this.itm = itm; this.text = text; }
public override void SaveCollection(string directory, string file, XCom.XCImageCollection images) { TotalViewPck.Instance.View.SaveBMP(directory + "//" + file + ".bmp", TotalViewPck.Instance.Pal); }
private void parseLine(XCom.KeyVal line, XCom.VarCollection vars) { switch (line.Keyword.ToLower()) { case "cursor": if (line.Rest.EndsWith("\\")) SharedSpace.Instance.GetObj("cursorFile", line.Rest + "CURSOR"); else SharedSpace.Instance.GetObj("cursorFile", line.Rest + "\\CURSOR"); break; case "logfile": try { LogFile.DebugOn = bool.Parse(line.Rest); } catch { Console.WriteLine("Could not parse logfile line"); } break; } }
public override void SaveCollection(string directory, string file,XCom.XCImageCollection images) { codec.SaveCollection(directory,file,images); }