示例#1
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;
		}
示例#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);
        }
示例#3
0
		protected override XCImageCollection LoadFileOverride(string directory, string file, int imgWid, int imgHei, Palette pal)
		{
			Image img = Image.FromFile(directory + "\\" + file);
			System.Drawing.Bitmap bmp = new System.Drawing.Bitmap(img);
			BmpForm bmf = new BmpForm();
			bmf.Bitmap = bmp;

			xConsole.AddLine("File: " + directory + "\\" + file);
			if (bmf.ShowDialog() == System.Windows.Forms.DialogResult.OK)
			{
				imageSize = bmf.SelectedSize;

				return new DotNetCollection(bmp, imgWid, imgHei, bmf.SelectedSpace);
			}

			return null;			
		}
示例#4
0
        protected override XCImageCollection LoadFileOverride(string directory, string file, int imgWid, int imgHei, Palette pal)
        {
            Image img = Image.FromFile(directory + "/" + file);

            System.Drawing.Bitmap bmp = new System.Drawing.Bitmap(img);
            BmpForm bmf = new BmpForm();

            bmf.Bitmap = bmp;

            xConsole.AddLine("File: " + directory + "/" + file);
            if (bmf.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                imageSize = bmf.SelectedSize;

                return(new DotNetCollection(bmp, imgWid, imgHei, bmf.SelectedSpace));
            }

            return(null);
        }