Aspose.Imaging.Examples.CSharp.ModifyingAndConvertingImages.TiffDataRecovery.Run C# (CSharp) Метод

Run() публичный статический Метод

public static Run ( ) : void
Результат void
        public static void Run()
        {
            // ExStart:TiffDataRecovery
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_ModifyingAndConvertingImages();

            // Create an instance of LoadOptions and set LoadOptions properties
            LoadOptions loadOptions = new LoadOptions();
            loadOptions.DataRecoveryMode = DataRecoveryMode.ConsistentRecover;
            loadOptions.DataBackgroundColor = Color.Red;
          
            // Create an instance of Image and load a damaged image by passing the instance of LoadOptions
            using (Image image = Image.Load(dataDir + "SampleTiff1.tiff", loadOptions))
            {
                // Do some work
            }
            // ExEnd:TiffDataRecovery
        }
    }
TiffDataRecovery