ConvertConfig.SetOutputWidth Method

Definition

Namespace: P1.ImageSdk

Configures the output scaling using an absolute output width. Height is automatically calculated from the aspect ratio.

public ConvertConfig SetOutputWidth(int destinationWidth);

THis method overwrite any previous calls to SetOutputScale and SetOutputHeight

The image processing uses the output width as a guide, meaning that it will keep aspect ratio of the output image.

Also, the final output size might be larger by a few pixels, to allow the processing algorithms to use optimizations.

Always use the image width/height from resulting BitmapImage.

Parameters:

destinationWidth

The output image width in pixels

Returns:

This object itself (this), to allow chaining