示例#1
0
		protected override XCImageCollection LoadFileOverride(string directory, string file, int imgWid, int imgHei, 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 new DotNetCollection(directory + file, imgWid, imgHei, bmf.SelectedSpace);
			}

			return null;			
		}
示例#2
0
        protected override XCImageCollection LoadFileOverride(string directory, string file, int imgWid, int imgHei, 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(new DotNetCollection(directory + file, imgWid, imgHei, bmf.SelectedSpace));
            }

            return(null);
        }