UIImage

public extension UIImage

Adds framework-related methods to UIImage.

  • Returns a copy of the image, taking into account its orientation

    Declaration

    Swift

    var imgly_normalizedImage: UIImage { get }
  • Returns a rescaled copy of the image, taking into account its orientation

    :discussion: The image will be scaled disproportionately if necessary to fit the bounds specified by the parameter.

    Declaration

    Swift

    func imgly_normalizedImageOfSize(_ size: CGSize) -> UIImage

    Parameters

    size

    The size of the rescaled image.

    Return Value

    The rescaled image.

  • Declaration

    Swift

    extension UIImage.Orientation: CustomStringConvertible