MNImageUtils

open class MNImageUtils

Encapsulates management of images used in various UI

  • Mask an ‘image’ by cropping it according to the specified ‘width’ and ‘height’. And then decompress.

    Declaration

    Swift

    public static func maskImageAndDecompress(image: UIImage, width: CGFloat, height: CGFloat) -> UIImage?

    Parameters

    image

    The image to mask

    width

    The width to be used in masking the image

    height

    The height to be used in masking the image