Contents

init(targetHeight:)

Creates an image scaler transformer that preserves the aspect ratio.

Declaration

init(targetHeight: Double)

Parameters

  • targetHeight:

    The target image height. It must be positive.

Discussion

This transformer scales an image to match the targetHeight while preserving the aspect ratio.

See Also

Creating a transformer