Performs a lossless rotation or flipping on a JPEG file.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public static bool JPEGTransform(
	string source,
	string destination,
	FREE_IMAGE_JPEG_OPERATION operation,
	bool perfect
)
Visual Basic (Declaration)
Public Shared Function JPEGTransform ( _
	source As String, _
	destination As String, _
	operation As FREE_IMAGE_JPEG_OPERATION, _
	perfect As Boolean _
) As Boolean
Visual C++
public:
static bool JPEGTransform(
	String^ source, 
	String^ destination, 
	FREE_IMAGE_JPEG_OPERATION operation, 
	bool perfect
)

Parameters

source
Type: System..::.String
Source file.
destination
Type: System..::.String
Destination file; can be the source file; will be overwritten.
operation
Type: FreeImageAPI..::.FREE_IMAGE_JPEG_OPERATION
The operation to apply.
perfect
Type: System..::.Boolean
To avoid lossy transformation, you can set the perfect parameter to true.

Return Value

Returns true on success, false on failure.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also