See Also Examples Applies To
Saves the native GdPicture image as jpeg image format.
Syntax
object.SaveAsJPEG (sFilePath, nQuality)
The SaveAsJPEG syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| sFilePath | Required. String. The complete file path to save the native GdPicture image. |
| nQuality | Optional. Long. Default value is 75. Defines the compression quality between 1 and 100. |
Returns
Long. GdPictureStatus
Category
Save and Close Image
Visual Basic Sample
How to convert BMP file to JPEG file
Dim nImageID As Long
nImageID = object.CreateImageFromFile("image.bmp")
If nImageID <> 0 Then
object.SaveAsJPEG ("image.jpg")
object.CloseImage (nImageID)
End If