VintaSoft Imaging .NET SDK and Plug-ins Discussions
Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.
Board index < VintaSoft Imaging < VintaSoft Imaging .NET SDK and Plug-ins Discussions
sourceStream = new FileStream(this.MainView.DocumentPath, FileMode.Open);
string newPath = $"{Path.GetDirectoryName(this.MainView.DocumentPath)}\\.strickland.tif";
newStream = new FileStream(newPath, FileMode.CreateNew);
var sourceTest = new TiffFile(this.MainView.DocumentPath);
var destTest = new TiffFile((newPath));
// Save for new document with selected pages
var tiffEncoder = new TiffEncoder(true);
foreach (ThumbnailImageItem page in this.MainView.ThumbnailViewerMain.SelectedThumbnails)
{
tiffEncoder.SaveImage(page.Source, newStream);
}
The above compiles but the page.Source is null. Is there property off the ThumbnailImageItem that tells me which index the image represents in the images collection? Or some other setting that gives the index location of the selected images. Is there another direction that I should be looking at?