Class that contains all information needed to read/save image files and collections. This class should not be instantiated directly. Upon startup, objects from derived classes will be created and tracked
Inheritance: IAssemblyLoadable, IOpenSave
Beispiel #1
0
		public xcProfile(ImgProfile profile):base(0,0)
		{			
			imageSize = new System.Drawing.Size(profile.ImgWid, profile.ImgHei);
			codec = profile.ImgType;
			expDesc = profile.Description;
			ext = profile.Extension;
			author = "Profile";
			desc = profile.Description;

			if (profile.OpenSingle != "")
				singleFile = profile.OpenSingle;

			//fileOptions.BmpDialog = true;
			//fileOptions.OpenDialog = true;

			//since we are loading off of an already generic implementation
			//we should let that implementation determine how this format be saved
			//fileOptions.SaveDialog = false;
			//fileOptions.CustomDialog = false;

			fileOptions.Init(false, true, true, false);

			xConsole.AddLine("Profile created: " + desc);

			try
			{
				defPal = XCom.SharedSpace.Instance.GetPaletteTable()[profile.Palette];
			}
			catch
			{
				defPal = XCom.Palette.TFTDBattle;
			}
		}
Beispiel #2
0
		public bool this[IXCImageFile.Filter filter]
		{
			get { return filters[filter]; }
		}