Document Solutions for PDF
DS.Documents.Imaging Assembly / GrapeCity.Documents.Imaging Namespace / GcBitmap Class / ToJpegStream Method
The image quality from 0 (best compression) to 100 (best quality).

In This Topic
    ToJpegStream Method
    In This Topic
    Saves the image into a Stream in JPEG format with specified quality (from 0 to 100). The returned stream should be disposed after usage.
    Syntax
    'Declaration
     
    Public Function ToJpegStream( _
       ByVal quality As System.Integer _
    ) As System.IO.MemoryStream
    public System.IO.MemoryStream ToJpegStream( 
       System.int quality
    )

    Parameters

    quality
    The image quality from 0 (best compression) to 100 (best quality).

    Return Value

    The stream containing JPEG data.
    See Also