FreeImageBitmap.JPEGCrop Method (String, String, Rectangle)
From FreeImage.NET
FreeImage.NET Class Library Reference
| FreeImageBitmapJPEGCrop Method (String, String, Rectangle) |
Performs a lossless crop on a JPEG file.
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
C#
public static bool JPEGCrop( string source, string destination, Rectangle rect )
Parameters
- source
- Type: SystemString
Source filename. - destination
- Type: SystemString
Destination filename. - rect
- Type: System.DrawingRectangle
Specifies the cropped rectangle.
Return Value
Type: BooleanReturns true on success, false on failure.
| Exception | Condition |
|---|---|
| ArgumentNullException | source or destination is null. |
| FileNotFoundException | source does not exist. |