See Also Examples Applies To
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.
Syntax
object.TransformJPEG (sInputFile, sOutputFile, nTransformation)
The TransformJPEG syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| sInputFile | Required. String. The path of the image to transform. |
| sOutputFile | Required. String. The path of the transformed image. |
| nTransformation |
Required. Long. The JPEG transformation to apply. Can be: JPEGTransformRotate90 = 13 : Rotate 90 degrees JPEGTransformRotate180 = 14 : Rotate 180 degrees JPEGTransformRotate270 = 15 : Rotate 270 degrees JPEGTransformFlipHorizontal = 16 : Flip horizontally JPEGTransformFlipVertical = 17 : Flip vertically |
Returns
Long. GdPictureStatus
Category
Standalone Functions