Предоставляет низкоуровневые функции для управления файлом JBIG2.
Вот пример, показывающий, как управлять многостраничным файлом JBIG2:
Class Jbig2FileExample
Public Sub RunExample()
' create image collection
Dim images As New Vintasoft.Imaging.ImageCollection()
' add several images into collection
' [ do not forget to set your image file paths here! ]
images.Add("test.bmp")
images.Add("multipage.tif")
images.Add("animated.gif")
' create new JBIG2 file
Dim file As New Vintasoft.Imaging.Codecs.ImageFiles.Jbig2.Jbig2File("multipage.jb2")
' add pages into file
file.Pages.Add(images)
' remove page
file.Pages.RemoveAt(2)
' change encoder settings
file.Pages.EncoderSettings.UseSymbolDictionary = False
' insert pages into file
file.Pages.Insert(1, images)
' save changes
file.SaveChanges()
End Sub
End Class
class Jbig2FileExample
{
public void RunExample()
{
// create image collection
Vintasoft.Imaging.ImageCollection images =
new Vintasoft.Imaging.ImageCollection();
// add several images into collection
// [ do not forget to set your image file paths here! ]
images.Add("test.bmp");
images.Add("multipage.tif");
images.Add("animated.gif");
// create new JBIG2 file
Vintasoft.Imaging.Codecs.ImageFiles.Jbig2.Jbig2File file =
new Vintasoft.Imaging.Codecs.ImageFiles.Jbig2.Jbig2File("multipage.jb2");
// add pages into file
file.Pages.Add(images);
// remove page
file.Pages.RemoveAt(2);
// change encoder settings
file.Pages.EncoderSettings.UseSymbolDictionary = false;
// insert pages into file
file.Pages.Insert(1, images);
// save changes
file.SaveChanges();
}
}
Целевые платформы: .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5