You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Lossless JPEG Transformation > TransformJPEG Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.TransformJPEG Method

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 function allows to opening / modifying / saving JPEG images, without loss of information.

C#
public GdPictureStatus TransformJPEG(
    String InputFile, 
    String OutputFile, 
    JPEGTransformation Transformation
);
Visual Basic
Public Function TransformJPEG(
    ByVal InputFile As String, 
    ByVal OutputFile As String, 
    ByVal Transformation As JPEGTransformation
) As GdPictureStatus
Parameters
Parameters 
Description 
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.  
Returns

A member of the GdPictureStatus enumeration.

This function uses WinAPI.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.