Performs a lossless crop on a JPEG file.

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

Syntax

C#
public static bool JPEGCrop(
	string src_file,
	string dst_file,
	int left,
	int top,
	int right,
	int bottom
)
Visual Basic (Declaration)
Public Shared Function JPEGCrop ( _
	src_file As String, _
	dst_file As String, _
	left As Integer, _
	top As Integer, _
	right As Integer, _
	bottom As Integer _
) As Boolean
Visual C++
public:
static bool JPEGCrop(
	String^ src_file, 
	String^ dst_file, 
	int left, 
	int top, 
	int right, 
	int bottom
)

Parameters

src_file
Type: System..::.String
Source filename.
dst_file
Type: System..::.String
Destination filename.
left
Type: System..::.Int32
Specifies the left position of the cropped rectangle.
top
Type: System..::.Int32
Specifies the top position of the cropped rectangle.
right
Type: System..::.Int32
Specifies the right position of the cropped rectangle.
bottom
Type: System..::.Int32
Specifies the bottom position of the cropped rectangle.

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