示例#1
0
		protected override XCImageCollection LoadFileOverride(string directory, string file, int imgWid, int imgHei, Palette pal)
		{
			XCImageCollection collect = new XCImageCollection();
			XCImage img = new BDYImage(pal, File.OpenRead(directory + "\\" + file),imgWid,imgHei);
			collect.Add(img);

			return collect;
		}
示例#2
0
        protected override XCImageCollection LoadFileOverride(
            string directory,
            string file,
            int imgWid,
            int imgHei,
            Palette pal)
        {
            XCImageCollection collect = new XCImageCollection();
            XCImage           img     = new BDYImage(
                pal,
                File.OpenRead(directory + "/" + file),
                imgWid,
                imgHei);

            collect.Add(img);

            return(collect);
        }
示例#3
0
 public override void SaveCollection(
     string directory,
     string file,
     XCImageCollection images)
 {
     if (images.Count == 1)
     {
         BDYImage.Save(images[0].Bytes, File.OpenWrite(directory + "/" + file + ext));
     }
     else
     {
         for (int i = 0; i < images.Count; i++)
         {
             BDYImage.Save(
                 images[i].Bytes,
                 File.OpenWrite(directory + "/" + file + i.ToString() + ext));
         }
     }
 }