GdPicture.NET Reference Guide
TransformJPEG Method (GdPictureImaging)





GdPicture14 Namespace > GdPictureImaging Class : TransformJPEG Method
The path of the image to transform.
The path of the transformed image.
The JPEG transformation to apply. A member of the JPEGTransformation enumeration.
Applies transformation to a JPEG image without loss of information. When a JPEG image is compressed, some of the information in the image is lost. If you open a JPEG file, modify the image, and save it to another JPEG file, the quality will decrease. This method allows to opening / modifying / saving JPEG images, without loss of information.
Syntax
'Declaration
 
Public Function TransformJPEG( _
   ByVal InputFile As String, _
   ByVal OutputFile As String, _
   ByVal Transformation As JPEGTransformation _
) As GdPictureStatus
public GdPictureStatus TransformJPEG( 
   string InputFile,
   string OutputFile,
   JPEGTransformation Transformation
)
public function TransformJPEG( 
    InputFile: String;
    OutputFile: String;
    Transformation: JPEGTransformation
): GdPictureStatus; 
public function TransformJPEG( 
   InputFile : String,
   OutputFile : String,
   Transformation : JPEGTransformation
) : GdPictureStatus;
public: GdPictureStatus TransformJPEG( 
   string* InputFile,
   string* OutputFile,
   JPEGTransformation Transformation
) 
public:
GdPictureStatus TransformJPEG( 
   String^ InputFile,
   String^ OutputFile,
   JPEGTransformation Transformation
) 

Parameters

InputFile
The path of the image to transform.
OutputFile
The path of the transformed image.
Transformation
The JPEG transformation to apply. A member of the JPEGTransformation enumeration.

Return Value

A member of the GdPictureStatus enumeration.
Remarks
The image's width and height have to be divisible by 16, otherwise, and Invalid Parameter will be returned.
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members