Performs a lossless rotation or flipping on a JPEG file.
Namespace:
FreeImageAPIAssembly: 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.