Crop.Apply Method (Bitmap, Int32, Int32, Int32, Int32)

Produces a cropped copy of a given bitmap. The source bitmap remains unchanged.

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

Syntax

C#
public static Bitmap Apply(
	Bitmap source,
	int x,
	int y,
	int width,
	int height
)

Parameters

source

Type: Aurigma.GraphicsMill.Bitmap

A Bitmap to crop.
x

Type: System.Int32

The x-coordinate of the upper-left corner of the cropping rectangle.
y

Type: System.Int32

The y-coordinate of the upper-left corner of the cropping rectangle.
width

Type: System.Int32

The width of the cropping rectangle.
height

Type: System.Int32

The height of the cropping rectangle.

Return Value

A new Bitmap containing the result of crop transformation.

See Also

Reference