Nevron .NET Vision
Nevron.Compression Namespace / NCompression Class / Compress Method


In This Topic
    Compress Method (NCompression)
    In This Topic
    Compresses the given input stream with the gzip algorithm.
    Syntax
    'Declaration
     
    
    Public Shared Sub Compress( _
       ByVal input As System.IO.Stream, _
       ByVal output As System.IO.Stream, _
       ByVal compressionLevel As ENCompressionLevel _
    ) 
    'Usage
     
    
    Dim input As System.IO.Stream
    Dim output As System.IO.Stream
    Dim compressionLevel As ENCompressionLevel
     
    NCompression.Compress(input, output, compressionLevel)
    public static void Compress( 
       System.IO.Stream input,
       System.IO.Stream output,
       ENCompressionLevel compressionLevel
    )

    Parameters

    input
    output
    compressionLevel
    Remarks
    The gzip algorithm is very popular because of its great performance. It is used in many formats such as ZIP, PNG, PDF, flash movies (SWF), etc.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also