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.

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 grayScale,
	IEImage..::..JpegCopyMarkers copyMarkers,
	Rectangle cutRect
)
Public Shared Function JpegLosslessTransform ( _
	sourceFileName As String, _
	destFileName As String, _
	transform As IEImage..::..JpegTransform, _
	grayScale As Boolean, _
	copyMarkers As IEImage..::..JpegCopyMarkers, _
	cutRect As Rectangle _
) As Boolean
public:
static bool JpegLosslessTransform(
	String^ sourceFileName, 
	String^ destFileName, 
	IEImage..::..JpegTransform transform, 
	bool grayScale, 
	IEImage..::..JpegCopyMarkers copyMarkers, 
	Rectangle cutRect
)

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
grayScale
Boolean
if true force grayscale output
copyMarkers
IEImage..::..JpegCopyMarkers
pecifies how to copy comments and markers (as IPTC info)
cutRect
Rectangle
specifies the rectangle to save when jtCut is specified

Return Value

returns false if fails

Examples

CopyC#
IEImage.JpegLosslessTransform("input.jpg","output.jpg",IEImage.JpegTransform.Rotate90,false,IEImage.JpegCopyMarkers.CopyAll,new Rectangle(0,0,0,0));

See Also