Document Solutions for PDF
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Imaging Namespace / GcBitmap Class / SaveAsWebp Method / SaveAsWebp(String,Nullable<Rectangle>,Boolean,Int32,Int32) Method
The output file path.
Clipping rectangle of the image to be saved.
Either lossless (true) or lossy (false) webp format.
The compression quality. Between 0 and 100.
The encoding method to use. Its a quality/speed trade-off (0=fast, 6=slower-better).

In This Topic
    SaveAsWebp(String,Nullable<Rectangle>,Boolean,Int32,Int32) Method
    In This Topic
    Saves the image to a file in WEBP format.
    Syntax
    'Declaration
     
    Public Overloads Sub SaveAsWebp( _
       ByVal path As System.String, _
       Optional ByVal clipRect As System.Nullable(Of Rectangle), _
       Optional ByVal lossless As System.Boolean, _
       Optional ByVal quality As System.Integer, _
       Optional ByVal method As System.Integer _
    ) 
    public void SaveAsWebp( 
       System.string path,
       System.Nullable<Rectangle> clipRect,
       System.bool lossless,
       System.int quality,
       System.int method
    )

    Parameters

    path
    The output file path.
    clipRect
    Clipping rectangle of the image to be saved.
    lossless
    Either lossless (true) or lossy (false) webp format.
    quality
    The compression quality. Between 0 and 100.
    method
    The encoding method to use. Its a quality/speed trade-off (0=fast, 6=slower-better).
    See Also