JpegLosslessTransform performs various useful transformations of JPEG files.

JpegLosslessTransform works by rearranging the compressed data, without ever fully decoding the image.

Therefore, its transformations are lossless: there is no image degradation at all.

This function allows to update EXIF thumbnail and orientation.

Namespace: HiComponents.IEvolution
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.1.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public static bool JpegLosslessTransform(
	string sourceFileName,
	string destFileName,
	IEImage..::..JpegTransform transform,
	bool updateEXIF
)
Public Shared Function JpegLosslessTransform ( _
	sourceFileName As String, _
	destFileName As String, _
	transform As IEImage..::..JpegTransform, _
	updateEXIF As Boolean _
) As Boolean
public:
static bool JpegLosslessTransform(
	String^ sourceFileName, 
	String^ destFileName, 
	IEImage..::..JpegTransform transform, 
	bool updateEXIF
)

Parameters

sourceFileName
String
the path of the source jpeg
destFileName
String
the path of the destination jpeg (will be created)
transform
IEImage..::..JpegTransform
specifies the required transformation
updateEXIF
Boolean
when true the function updates orientation and thumbnail of EXIF tags.

Return Value

returns false if fails

Examples

CopyC#
IEImage.JpegLosslessTransform("input.jpg","output.jpg",IEImage.JpegTransform.Rotate90,true);

See Also