Saves a GdPicture image as jpeg image format.
public GdPictureStatus SaveAsJPEG( int ImageID, String FilePath, int Quality );
Public Function SaveAsJPEG( ByVal ImageID As Integer, ByVal FilePath As String, ByVal Quality As Integer ) As GdPictureStatus
|
Parameters |
Description |
|
ImageID |
GdPicture Image Identifier. |
|
FilePath |
The complete file path to save a GdPicture image. |
|
Quality |
Defines the compression quality between 1 and 100. Usually 75. |
A member of the GdPictureStatus enumeration.
How to convert BMP file to JPEG file
Dim ImageID As Integer ImageID = oGdPictureImaging.CreateGdPictureImageFromFile("image.bmp") If ImageID <> 0 Then oGdPictureImaging.SaveAsJPEG (ImageID, "image.jpg", 75) oGdPictureImaging.ReleaseGdPictureImage (ImageID) End If
|
What do you think about this topic? Send feedback!
|
|
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.
|