/// <summary>
        ///
        /// </summary>
        /// <param name="folderPath"></param>
        /// <returns></returns>
        public VideoFrameCollection BuildVideoFrameCollection(string folderPath, string tempFolderPath, Size imagesize, int tranisitionTime, string transition, string transitionFileName, string frameTransition)
        {
            VideoFrameCollection Retval = new VideoFrameCollection();

            try
            {
                int         FrameIndex      = 0;
                string      TempFolderImage = string.Empty;
                FrameEffect FrameEffect     = new FrameEffect(-1, 2, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty);

                if (Directory.Exists(folderPath))
                {
                    //-- Get the Image files
                    FileInfo[]    VideoFiles = new FileInfo[0];
                    DirectoryInfo VideoDir   = new DirectoryInfo(folderPath);
                    VideoFiles = VideoDir.GetFiles("*.jpg");

                    //-- Add the jpg images
                    foreach (FileInfo JpegFrame in VideoFiles)
                    {
                        //////-- Copy the image in the temp folder.
                        Retval.Add(new VideoFrame(JpegFrame.FullName, frameTransition, transitionFileName, FrameEffect, FrameIndex, tranisitionTime, imagesize, 3, transition));
                    }

                    //-- Add the jpg images
                    VideoFiles = VideoDir.GetFiles("*.png");
                    foreach (FileInfo PngFrame in VideoFiles)
                    {
                        //-- Convert the image in to jpeg and save in the divideo temp folder.
                        string JpegImagePath = Path.Combine(tempFolderPath, Path.GetFileNameWithoutExtension(PngFrame.FullName) + ".jpg");
                        ConvertPngToJpeg(PngFrame.FullName, JpegImagePath);

                        Retval.Add(new VideoFrame(JpegImagePath, frameTransition, transitionFileName, FrameEffect, FrameIndex, tranisitionTime, imagesize, 3, transition));
                    }
                }
            }
            catch (Exception)
            {
            }
            return(Retval);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="folderPath"></param>
        /// <returns></returns>
        public VideoFrameCollection BuildVideoFrameCollection(string folderPath, string tempFolderPath)
        {
            VideoFrameCollection Retval = new VideoFrameCollection();
            Size FrameSize = new Size(350, 350);
            bool IsSizeReadFromImage = false;

            try
            {
                int FrameIndex=0;
                string TempFolderImage = string.Empty;
                FrameEffect FrameEffect = new FrameEffect(-1, 2, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty);

                if (Directory.Exists(folderPath))
                {
                    //-- Get the Image files
                    FileInfo[] VideoFiles = new FileInfo[0];
                    DirectoryInfo VideoDir = new DirectoryInfo(folderPath);
                    VideoFiles = VideoDir.GetFiles("*.jpg");

                    //-- Add the jpg images
                    foreach (FileInfo JpegFrame in VideoFiles)
                    {
                        //-- Read the image size
                        if (!IsSizeReadFromImage)
                        {
                            FrameSize = GetImageSize(JpegFrame.FullName);
                            IsSizeReadFromImage = true;
                        }

                        //////-- Copy the image in the temp folder.
                        ////TempFolderImage = Path.Combine(tempFolderPath, Path.GetFileName(JpegFrame.FullName));
                        ////File.Copy(JpegFrame.FullName, TempFolderImage, true);
                        Retval.Add(new VideoFrame(JpegFrame.FullName, string.Empty, string.Empty, FrameEffect, FrameIndex, 1, FrameSize, 3, string.Empty));
                    }

                    //-- Add the jpg images
                    VideoFiles = VideoDir.GetFiles("*.png");
                    foreach (FileInfo PngFrame in VideoFiles)
                    {
                        //-- Read the image size
                        if (!IsSizeReadFromImage)
                        {
                            FrameSize = GetImageSize(PngFrame.FullName);
                            IsSizeReadFromImage = true;
                        }

                        //-- Convert the image in to jpeg and save in the divideo temp folder.
                        string JpegImagePath = Path.Combine(tempFolderPath, Path.GetFileNameWithoutExtension(PngFrame.FullName) + ".jpg");
                        ConvertPngToJpeg(PngFrame.FullName, JpegImagePath);

                        Retval.Add(new VideoFrame(JpegImagePath, string.Empty, string.Empty, FrameEffect, FrameIndex, 1, FrameSize, 3, string.Empty));
                    }

                }
            }
            catch (Exception)
            {
            }
            return Retval;
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="folderPath"></param>
        /// <returns></returns>
        public VideoFrameCollection BuildVideoFrameCollection(string folderPath, string tempFolderPath, Size imagesize, int tranisitionTime, string transition, string transitionFileName, string frameTransition)
        {
            VideoFrameCollection Retval = new VideoFrameCollection();

            try
            {
                int FrameIndex = 0;
                string TempFolderImage = string.Empty;
                FrameEffect FrameEffect = new FrameEffect(-1, 2, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty);

                if (Directory.Exists(folderPath))
                {
                    //-- Get the Image files
                    FileInfo[] VideoFiles = new FileInfo[0];
                    DirectoryInfo VideoDir = new DirectoryInfo(folderPath);
                    VideoFiles = VideoDir.GetFiles("*.jpg");

                    //-- Add the jpg images
                    foreach (FileInfo JpegFrame in VideoFiles)
                    {
                        //////-- Copy the image in the temp folder.
                        Retval.Add(new VideoFrame(JpegFrame.FullName, frameTransition, transitionFileName, FrameEffect, FrameIndex, tranisitionTime, imagesize, 3, transition));
                    }

                    //-- Add the jpg images
                    VideoFiles = VideoDir.GetFiles("*.png");
                    foreach (FileInfo PngFrame in VideoFiles)
                    {
                        //-- Convert the image in to jpeg and save in the divideo temp folder.
                        string JpegImagePath = Path.Combine(tempFolderPath, Path.GetFileNameWithoutExtension(PngFrame.FullName) + ".jpg");
                        ConvertPngToJpeg(PngFrame.FullName, JpegImagePath);

                        Retval.Add(new VideoFrame(JpegImagePath, frameTransition, transitionFileName, FrameEffect, FrameIndex, tranisitionTime, imagesize, 3, transition));
                    }

                }
            }
            catch (Exception)
            {
            }
            return Retval;
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="folderPath"></param>
        /// <returns></returns>
        public VideoFrameCollection BuildVideoFrameCollection(string folderPath, string tempFolderPath)
        {
            VideoFrameCollection Retval = new VideoFrameCollection();
            Size FrameSize           = new Size(350, 350);
            bool IsSizeReadFromImage = false;

            try
            {
                int         FrameIndex      = 0;
                string      TempFolderImage = string.Empty;
                FrameEffect FrameEffect     = new FrameEffect(-1, 2, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty);



                if (Directory.Exists(folderPath))
                {
                    //-- Get the Image files
                    FileInfo[]    VideoFiles = new FileInfo[0];
                    DirectoryInfo VideoDir   = new DirectoryInfo(folderPath);
                    VideoFiles = VideoDir.GetFiles("*.jpg");

                    //-- Add the jpg images
                    foreach (FileInfo JpegFrame in VideoFiles)
                    {
                        //-- Read the image size
                        if (!IsSizeReadFromImage)
                        {
                            FrameSize           = GetImageSize(JpegFrame.FullName);
                            IsSizeReadFromImage = true;
                        }

                        //////-- Copy the image in the temp folder.
                        ////TempFolderImage = Path.Combine(tempFolderPath, Path.GetFileName(JpegFrame.FullName));
                        ////File.Copy(JpegFrame.FullName, TempFolderImage, true);
                        Retval.Add(new VideoFrame(JpegFrame.FullName, string.Empty, string.Empty, FrameEffect, FrameIndex, 1, FrameSize, 3, string.Empty));
                    }

                    //-- Add the jpg images
                    VideoFiles = VideoDir.GetFiles("*.png");
                    foreach (FileInfo PngFrame in VideoFiles)
                    {
                        //-- Read the image size
                        if (!IsSizeReadFromImage)
                        {
                            FrameSize           = GetImageSize(PngFrame.FullName);
                            IsSizeReadFromImage = true;
                        }

                        //-- Convert the image in to jpeg and save in the divideo temp folder.
                        string JpegImagePath = Path.Combine(tempFolderPath, Path.GetFileNameWithoutExtension(PngFrame.FullName) + ".jpg");
                        ConvertPngToJpeg(PngFrame.FullName, JpegImagePath);

                        Retval.Add(new VideoFrame(JpegImagePath, string.Empty, string.Empty, FrameEffect, FrameIndex, 1, FrameSize, 3, string.Empty));
                    }
                }
            }
            catch (Exception)
            {
            }
            return(Retval);
        }