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

Crop Constructor (Rectangle, 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 ( _
	rect As Rectangle, _
	backgroundColor As Color _
)
C#
public Crop(
	Rectangle rect,
	Color backgroundColor
)

Parameters

rect

Type: System.Drawing.Rectangle

Cropping rectangle. You can change it later through property Rectangle.
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