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

Crop Constructor (Int32, Int32, Int32, Int32, Color)

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

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

Syntax

Visual Basic
Public Sub New ( _
	x As Integer, _
	y As Integer, _
	width As Integer, _
	height As Integer, _
	backgroundColor As Color _
)
C#
public Crop(
	int x,
	int y,
	int width,
	int height,
	Color backgroundColor
)

Parameters

x

Type: System.Int32

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

Type: System.Int32

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

Type: System.Int32

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

Type: System.Int32

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

Type: Aurigma.GraphicsMill.Color

Crop background color value. If its color space does not conform pixel format of target bitmap, it is converted to bitmap color space. You can change it later through property BackgroundColor.

See Also

Reference