private void ReorderScannedImages() { var e = new List <int>(); if (options.AltDeinterleave) { imageList.AltDeinterleave(e); } else if (options.Deinterleave) { imageList.Deinterleave(e); } else if (options.AltInterleave) { imageList.AltInterleave(e); } else if (options.Interleave) { imageList.Interleave(e); } if (options.Reverse) { imageList.Reverse(e); } }
private void ReorderScannedImages() { var sep = options.SplitPatchT ? SaveSeparator.PatchT : options.SplitScans ? SaveSeparator.FilePerScan : options.SplitSize > 0 || options.Split ? SaveSeparator.FilePerPage : SaveSeparator.None; scanList = SaveSeparatorHelper.SeparateScans(scanList, sep, options.SplitSize).Where(x => x.Count > 0).ToList(); foreach (var scan in scanList) { var imageList = new ScannedImageList(scan); var e = new List <int>(); if (options.AltDeinterleave) { imageList.AltDeinterleave(e); } else if (options.Deinterleave) { imageList.Deinterleave(e); } else if (options.AltInterleave) { imageList.AltInterleave(e); } else if (options.Interleave) { imageList.Interleave(e); } else if (options.DividedScanBooklet) { imageList.DividedScanBooklet(e); } if (options.Reverse) { imageList.Reverse(e); } } }