public static void Run()
        {
            // ExStart:SplittingTiffFrames
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_ModifyingAndConvertingImages();

            // Create an instance of TiffImage and load the file from disc
            using (var multiImage = (TiffImage)TiffImage.Load(dataDir + "SampleTiff1.tiff"))
            {
                // Initialize a variable to keep track of the frames in the image
                int i = 0;
                // Iterate over the tiff frame collection
                foreach (var tiffFrame in multiImage.Frames)
                {
                    // Save the frame directly on disc in Jpeg compression
                    tiffFrame.Save(dataDir + i++ + ".tiff", new TiffOptions(TiffExpectedFormat.TiffJpegRgb));
                }
            }
            // ExEnd:SplittingTiffFrames
        }
        public static void Run()
        {
            // To get proper output please apply a valid Aspose.Imaging License. You can purchase full license or get 30 day temporary license from http:// Www.aspose.com/purchase/default.aspx.");

            // ExStart:SavingEachFrameInOtherRasterImageFormat
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_ModifyingAndConvertingImages();

            // Create an instance of TiffImage and load the file from disc
            using (var multiImage = (TiffImage)TiffImage.Load(dataDir + "SampleTiff1.tiff"))
            {
                // Initialize a variable to keep track of the frames in the image
                int i = 0;
                // Iterate over the tiff frame collection
                foreach (var tiffFrame in multiImage.Frames)
                {
                    // Save the frame directly on disc in PNG format
                    tiffFrame.Save(dataDir + i++ + ".png", new PngOptions());
                }
            }
            // ExEnd:SavingEachFrameInOtherRasterImageFormat
        }