Contents

transform(forImageWidth:height:)

Creates an affine transform for the specified image width and height.

Declaration

func transform(forImageWidth width: Int, height: Int) -> CGAffineTransform

Parameters

  • width:

    The width of the image.

  • height:

    The height of the image.

Return Value

An affine transform.

See Also

Evaluating the Horizon