Ejemplo n.º 1
0
        /// <summary>
        /// Loads the images into memory and adds them to a list.
        /// </summary>
        /// <param name="images"></param>
        /// <param name="framestart"></param>
        /// <returns></returns>
        public static List <DiffusionCurves.Model.Frame> BuildFrames(string[] images, int framestart)
        {
            DiffusionCurves.Model.Frame        frame;
            List <DiffusionCurves.Model.Frame> frameslist = new List <DiffusionCurves.Model.Frame>();

            int index = framestart;

            //Add images to memory
            foreach (String imageName in images)
            {
                //Import images only if path is correct.
                if (CheckPath(imageName))
                {
                    frame = new DiffusionCurves.Model.Frame(imageName);
                    frameslist.Add(frame);
                    index++;
                }
            }

            return(frameslist);
        }
Ejemplo n.º 2
0
 public void TearDown()
 {
     this.frame = null;
 }
Ejemplo n.º 3
0
 public void SetUp()
 {
     this.frame = new DiffusionCurves.Model.Frame(@"Model\test.jpg");
 }