ConvertConfig.SetOutputHeight Method

Definition

Namespace: P1.ImageSdk

Configures the output scaling using an absolute output height. Width is automatically calculated from the aspect ratio.

public ConvertConfig SetOutputHeight(int destinationHeight);

This method overwrite any previous calls to SetOutputScale and SetOutputWidth

The image processing uses the output height 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:

destinationHeight

The output image height in pixels

Returns:

This object itself (this), to allow chaining