ImageTaskBase<T>.Crop Method
Definition
- Namespace
- GleamTech.ImageUltimate
- Assembly
- GleamTech.ImageUltimate.dll
Crop(int, int, int, int)
Crops the current image to the given coordinates and size. The command is added to the chain and not executed until the actual processing is done.
public T Crop(int x, int y, int width, int height)
Parameters
xintThe x-coordinate of the upper-left corner of the cropping rectangle.
yintThe y-coordinate of the upper-left corner of the cropping rectangle.
widthintThe width of the cropping rectangle.
heightintThe height of the cropping rectangle.
Returns
- T
The same instance of this class.
Crop(Rectangle)
Crops the current image to the given rectangle. The command is added to the chain and not executed until the actual processing is done.
public T Crop(Rectangle rectangle)
Parameters
rectangleRectangleThe cropping rectangle.
Returns
- T
The same instance of this class.