This documentation is for the old version. Go to the latest Graphics Mill docs

TransformsProvider.Crop Method (Single, Single, Single, Single)

Crops the image using specified rectangle (which is not obligatory totally inside the bitmap).

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Sub Crop ( _
	x As Single, _
	y As Single, _
	width As Single, _
	height As Single _
)
C#
public void Crop(
	float x,
	float y,
	float width,
	float height
)

Parameters

x

Type: System.Single

X-coordinate of the cropping rectangle.
y

Type: System.Single

Y-coordinate of the cropping rectangle.
width

Type: System.Single

Width of the cropping rectangle.
height

Type: System.Single

Height of the cropping rectangle.

Remarks

You can also use Crop class to crop the image.

See Also

Reference