Xceed Words for .NET v4.0 Documentation
CompressJPEG Method


Xceed.Drawing.NET Assembly > Xceed.Drawing Namespace > Image Class : CompressJPEG Method
The .jpeg image that will be used to create the memory stream.
The quality of the encoding used for compressing the .jpeg.
Creates a memory stream from a .jpeg image.
Syntax
'Declaration
 
Public Shared Function CompressJPEG( _
   ByVal image As Image, _
   ByVal quality As Integer _
) As MemoryStream
'Usage
 
Dim image As Image
Dim quality As Integer
Dim value As MemoryStream
 
value = Image.CompressJPEG(image, quality)
public static MemoryStream CompressJPEG( 
   Image image,
   int quality
)

Parameters

image
The .jpeg image that will be used to create the memory stream.
quality
The quality of the encoding used for compressing the .jpeg.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows, 11, 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

Reference

Image Class
Image Members