Click or drag to resize

IBitmapImageCrop Method

Copies a rectangular region from the image, and returns as new image.

Namespace:  CohesiveComputing.Imaging
Assembly:  CohesiveComputing.BatchImagePro (in CohesiveComputing.BatchImagePro.dll) Version: 1.0.0
Syntax
C#
IBitmapImage Crop(
	int startX,
	int startY,
	int width,
	int height
)

Parameters

startX
Type: SystemInt32
The start X position.
startY
Type: SystemInt32
The start Y position.
width
Type: SystemInt32
The crop width.
height
Type: SystemInt32
The crop height.

Return Value

Type: IBitmapImage
A new image instance with effect applied.
Exceptions
ExceptionCondition
ArgumentOutOfRangeException startX or startY or width or height
See Also