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

TransformsProvider.Crop Method (Rectangle, Color)

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

Parameters

rect

Type: System.Drawing.Rectangle

Cropping rectangle.
backgroundColor

Type: Aurigma.GraphicsMill.Color

Background color which is used when cropping rectangle takes pixels which are out of the image.

Remarks

You can also use Crop class to crop the image.

See Also

Reference