VintaSoft Imaging .NET SDK v8.6
Vintasoft.Imaging.Codecs.Encoders Namespace / Jpeg2000Encoder Class
Members Example



In This Topic
    Jpeg2000Encoder Class
    In This Topic
    Defines an encoder for JPEG2000 images.
    Object Model
    Jpeg2000Encoder ClassJpeg2000EncoderSettings Class
    Syntax
    'Declaration
     
    Public NotInheritable Class Jpeg2000Encoder 
       Inherits EncoderBase
       Implements IJpeg2000Encoder 
    public sealed class Jpeg2000Encoder : EncoderBase, IJpeg2000Encoder  
    public __gc __sealed class Jpeg2000Encoder : public EncoderBase, IJpeg2000Encoder  
    public ref class Jpeg2000Encoder sealed : public EncoderBase, IJpeg2000Encoder  
    Example
    This example shows how to convert a JPEG file to a JPEG2000 file:
    ' Converts Jpeg file to Jpeg2000 file.
    Public Shared Sub ConvertJpegToJpeg2000(jpegFilename As String, jpeg2000Filename As String)
        Using image As New Vintasoft.Imaging.VintasoftImage(jpegFilename)
            Using jpeg2000Encoder As New Vintasoft.Imaging.Codecs.Encoders.Jpeg2000Encoder()
                image.Save(jpeg2000Filename, jpeg2000Encoder)
            End Using
        End Using
    End Sub
    // Converts Jpeg file to Jpeg2000 file.
    public static void ConvertJpegToJpeg2000(string jpegFilename, string jpeg2000Filename)
    {
        using (Vintasoft.Imaging.VintasoftImage image =
            new Vintasoft.Imaging.VintasoftImage(jpegFilename))
        {
            using (Vintasoft.Imaging.Codecs.Encoders.Jpeg2000Encoder jpeg2000Encoder =
                new Vintasoft.Imaging.Codecs.Encoders.Jpeg2000Encoder())
            {
                image.Save(jpeg2000Filename, jpeg2000Encoder);
            }
        }
    }
    Inheritance Hierarchy

    System.Object
       Vintasoft.Imaging.Codecs.Encoders.EncoderBase
          Vintasoft.Imaging.Codecs.Encoders.Jpeg2000Encoder

    Requirements

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

    See Also