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

Crop Constructor (Single, Single, Single, Single)

Creates new Crop class instance. You are specifying cropping rectangle here.

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

Syntax

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

Parameters

x

Type: System.Single

X-coordinate for the left upper corner of the cropping rectangle. It can be changed later via Rectangle (using X property).
y

Type: System.Single

Y-coordinate for the left upper corner of the cropping rectangle. It can be changed later via Rectangle (using Y property).
width

Type: System.Single

Width of the cropping rectangle. It can be changed later via Rectangle (using Width property).
height

Type: System.Single

Height of the cropping rectangle. It can be changed later via Rectangle (using Height property).

See Also

Reference