Performs a lossless rotation or flipping on a JPEG file.

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

Syntax

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

Parameters

src_file
Type: System..::.String
Source file.
dst_file
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