ConvertConfig.SetCrop Method

Definition

Namespace: P1.ImageSdk

Configure for cropping the raw-image

public ConvertConfig SetCrop(Rect cropRect);

Offsets are with respects to the upper left corner. Positive Y direction is downwards.

The resulting crop might differ slightly from your defined parameters. This is the defined behavior of our resampling algorithm. Always use the image width/height from resulting BitmapImage.

Parameters:

cropRect

The rectangle to crop to, in the source image

Returns:

This object itself (this), to allow chaining