ConvertConfig.SetCrop Method

Definition

Namespace: P1.ImageSdk

Configure for cropping the raw-image

public ConvertConfig SetCrop(int x, int y, int width, int height);

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:

x

X pixel offset in source image

y

Y pixel offset in source image

width

Pixel width in source image

height

Pixel height in source image

Returns:

This object itself (this), to allow chaining