예제 #1
0
        private void CreateDiscImage(string videoTsFolder)
        {
            LogEvent("Create image started.");

            CreateImageSettings cis = new CreateImageSettings();

            cis.SourceFolder = videoTsFolder;
            cis.VolumeLabel  = m_settings.VolumeName;

            cis.ImageType = ImageType.UdfIso;
            cis.VideoDVD  = true;
            cis.ImageFile = m_settings.ImageFileName;

            m_Burner.CreateImage(cis);

            LogEvent("Create image completed.");
        }
예제 #2
0
        public void CreateImage(CreateImageSettings settings)
        {
            using (var data = new DataDisc())
            {
                // Add event handlers
                data.OnStatus       += new EventHandler <DataDiscStatusEventArgs>(DataDisc_OnStatus);
                data.OnFileStatus   += new EventHandler <DataDiscFileStatusEventArgs>(DataDisc_OnFileStatus);
                data.OnProgress     += new EventHandler <DataDiscProgressEventArgs>(DataDisc_OnProgress);
                data.OnContinueBurn += new EventHandler <DataDiscContinueEventArgs>(DataDisc_OnContinueBurn);

                data.ImageType = settings.ImageType;
                SetVolumeProperties(data, settings.VolumeLabel);
                // Create image file system
                SetImageLayoutFromFolder(data, settings.VideoDVD, settings.SourceFolder);

                // Create the image file
                if (!data.CreateImageFile(settings.ImageFile))
                {
                    throw new BurnerException(data.Error);
                }
            }
        }