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

TransformsProvider.Crop Method (Int32, Int32, Int32, Int32)

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 Integer, _
	y As Integer, _
	width As Integer, _
	height As Integer _
)
C#
public void Crop(
	int x,
	int y,
	int width,
	int height
)

Parameters

x

Type: System.Int32

X-coordinate of the cropping rectangle.
y

Type: System.Int32

Y-coordinate of the cropping rectangle.
width

Type: System.Int32

Width of the cropping rectangle.
height

Type: System.Int32

Height of the cropping rectangle.

Remarks

You can also use Crop class to crop the image.

Examples

Visual Basic
bitmap.Transforms.Crop(100, 150, 100, 80)
C#
bitmap.Transforms.Crop(100, 150, 100, 80);

See Also

Reference