Table of Contents

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

x int

The x-coordinate of the upper-left corner of the cropping rectangle.

y int

The y-coordinate of the upper-left corner of the cropping rectangle.

width int

The width of the cropping rectangle.

height int

The 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

rectangle Rectangle

The cropping rectangle.

Returns

T

The same instance of this class.