VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.Codecs.Encoders Namespace / TiffEncoder Class
Members Object Syntax Example Hierarchy Requirements SeeAlso
In This Topic
    TiffEncoder Class
    In This Topic
    Defines an encoder for TIFF images.
    Object Model
    TiffEncoderSettings TiffEncoder
    Syntax
    'Declaration
    
    Public NotInheritable Class TiffEncoder
       Inherits MultipageEncoderBase
    
    
    public sealed class TiffEncoder : MultipageEncoderBase
    
    
    public __gc __sealed class TiffEncoder : public MultipageEncoderBase*
    
    
    public ref class TiffEncoder sealed : public MultipageEncoderBase^
    
    
    Example

    Here is an example that shows how to load 3 image files and save them into multipage TIFF file:

    
    Class TiffEncoderExample
        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.tif")
        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 TiffEncoderExample
    {
        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.tif");
        }
    
        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.TiffEncoder

    Requirements

    Target Platforms: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also