VintaSoft Imaging .NET SDK v8.7
Vintasoft.Imaging.Codecs.Encoders Namespace / Jbig2Encoder Class
Members Example



In This Topic
    Jbig2Encoder Class
    In This Topic
    Defines an encoder for JBIG2 images.
    Object Model
    Jbig2Encoder ClassJbig2EncoderSettings Class
    Syntax
    'Declaration
     
    Public NotInheritable Class Jbig2Encoder 
       Inherits MultipageEncoderBase
       Implements IJbig2Encoder 
    public sealed class Jbig2Encoder : MultipageEncoderBase, IJbig2Encoder  
    public __gc __sealed class Jbig2Encoder : public MultipageEncoderBase, IJbig2Encoder  
    public ref class Jbig2Encoder sealed : public MultipageEncoderBase, IJbig2Encoder  
    Example
    This example shows how to load several images from disk and save them into multipage JBIG2 file.
    Class Jbig2EncoderExample
    	Public Sub RunExample()
    		' create image collection
    		Dim images As New Vintasoft.Imaging.ImageCollection()
                
    		' subscribe to progress event
    		AddHandler images.ImageCollectionSavingProgress, New System.EventHandler(Of Vintasoft.Imaging.ProgressEventArgs)(AddressOf images_ImageCollectionSavingProgress)
                
    		' 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")
                
    		' save the collection to the new file
    		images.SaveSync("output-multipage.jb2")
    	End Sub
                
    	Private Sub images_ImageCollectionSavingProgress(sender As Object, e As Vintasoft.Imaging.ProgressEventArgs)
    		' update progress info using e.Progress property
    		' ...
                
    		' cancel image collection saving using e.Cancel property if necessary
    		' ...
    	End Sub
    End Class
    class Jbig2EncoderExample
    {
        public void RunExample()
        {
            // create image collection
            Vintasoft.Imaging.ImageCollection images = 
                new Vintasoft.Imaging.ImageCollection();
                
            // subscribe to progress event
            images.ImageCollectionSavingProgress += 
                new System.EventHandler<Vintasoft.Imaging.ProgressEventArgs>(images_ImageCollectionSavingProgress);
                
            // 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");
                
            // save the collection to the new file
            images.SaveSync("output-multipage.jb2");
        }
                
        void images_ImageCollectionSavingProgress(object sender, Vintasoft.Imaging.ProgressEventArgs e)
        {
            // update progress info using e.Progress property
            // ...
                
            // cancel image collection saving using e.Cancel property if necessary
            // ...
        }
    }
    Inheritance Hierarchy

    System.Object
       Vintasoft.Imaging.Codecs.Encoders.EncoderBase
          Vintasoft.Imaging.Codecs.Encoders.MultipageEncoderBase
             Vintasoft.Imaging.Codecs.Encoders.Jbig2Encoder

    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also