GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / SaveAsWEBP Method
GdPicture image identifier.
A string that contains the name of the file to which to save the image. Can be an empty string. If empty, prompts the user to select a file. You can subsequently use the GetLastPath() method to retrieve the path of the selected file.
Specifies the compression quality between 1 (smallest file) and 100 (highest quality). Usually 75. Value >= 100 will perform lossless encoding.
Defines quality/speed trade-off between 0 (fast) and 6 (slower-better). Usually 6.





In This Topic
SaveAsWEBP Method (GdPictureImaging)
In This Topic
Saves a GdPicture image as WebP image.
Syntax
'Declaration
 
Public Function SaveAsWEBP( _
   ByVal ImageID As Integer, _
   ByVal FilePath As String, _
   ByVal Quality As Single, _
   ByVal Method As Integer _
) As GdPictureStatus
public GdPictureStatus SaveAsWEBP( 
   int ImageID,
   string FilePath,
   float Quality,
   int Method
)
public function SaveAsWEBP( 
    ImageID: Integer;
    FilePath: String;
    Quality: Single;
    Method: Integer
): GdPictureStatus; 
public function SaveAsWEBP( 
   ImageID : int,
   FilePath : String,
   Quality : float,
   Method : int
) : GdPictureStatus;
public: GdPictureStatus SaveAsWEBP( 
   int ImageID,
   string* FilePath,
   float Quality,
   int Method
) 
public:
GdPictureStatus SaveAsWEBP( 
   int ImageID,
   String^ FilePath,
   float Quality,
   int Method
) 

Parameters

ImageID
GdPicture image identifier.
FilePath
A string that contains the name of the file to which to save the image. Can be an empty string. If empty, prompts the user to select a file. You can subsequently use the GetLastPath() method to retrieve the path of the selected file.
Quality
Specifies the compression quality between 1 (smallest file) and 100 (highest quality). Usually 75. Value >= 100 will perform lossless encoding.
Method
Defines quality/speed trade-off between 0 (fast) and 6 (slower-better). Usually 6.

Return Value

A member of the GdPictureStatus enumeration.
Remarks

This method requires the Image Documents component to run.

See Also