Contents

init(targetWidth:)

Creates an image scaler transformer that preserves the aspect ratio.

Declaration

init(targetWidth: Double)

Parameters

  • targetWidth:

    The target image width. It must be positive.

Discussion

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

See Also

Creating a transformer