WebPImage.Crop
Contents
[
Hide
]Crop(Rectangle)
Crop the image using a specified rectangle region, removing unwanted portions while retaining the desired content. Integrate this method into your image processing workflow to precisely extract and focus on specific areas of interest within the image, enhancing clarity and composition for various applications.
public override void Crop(Rectangle rectangle)
Parameter | Type | Description |
---|---|---|
rectangle | Rectangle | The rectangle. |
See Also
- struct Rectangle
- class WebPImage
- namespace Aspose.Imaging.FileFormats.Webp
- assembly Aspose.Imaging
Crop(int, int, int, int)
Crop the image by applying left, right, top, and bottom shifts, effectively selecting a region of interest within the image. Utilize this method to dynamically extract desired portions of the image while adjusting its composition and focus according to your application’s requirements.
public override void Crop(int leftShift, int rightShift, int topShift, int bottomShift)
Parameter | Type | Description |
---|---|---|
leftShift | Int32 | The left shift. |
rightShift | Int32 | The right shift. |
topShift | Int32 | The top shift. |
bottomShift | Int32 | The bottom shift. |
See Also
- class WebPImage
- namespace Aspose.Imaging.FileFormats.Webp
- assembly Aspose.Imaging