Exemplo 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;
		}
Exemplo 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;
		}
Exemplo n.º 3
0
		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;
		}
Exemplo n.º 4
0
			public cbItem(XCom.Interfaces.IXCImageFile itm, string text)
			{
				this.itm = itm;
				this.text = text;
			}
Exemplo n.º 5
0
		public override void SaveCollection(string directory, string file, XCom.XCImageCollection images)
		{
			TotalViewPck.Instance.View.SaveBMP(directory + "//" + file + ".bmp", TotalViewPck.Instance.Pal);
		}
Exemplo n.º 6
0
		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;
			}
		}
Exemplo n.º 7
0
		public override void SaveCollection(string directory, string file,XCom.XCImageCollection images)
		{
			codec.SaveCollection(directory,file,images);
		}