FreeImage.JPEGCrop Method

FreeImage.NET

FreeImageJPEGCrop Method
Performs a lossless crop on a JPEG file.

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static bool JPEGCrop(
	string src_file,
	string dst_file,
	int left,
	int top,
	int right,
	int bottom
)

Parameters

src_file
Type: SystemString
Source filename.
dst_file
Type: SystemString
Destination filename.
left
Type: SystemInt32
Specifies the left position of the cropped rectangle.
top
Type: SystemInt32
Specifies the top position of the cropped rectangle.
right
Type: SystemInt32
Specifies the right position of the cropped rectangle.
bottom
Type: SystemInt32
Specifies the bottom position of the cropped rectangle.

Return Value

Type: Boolean
Returns true on success, false on failure.
See Also