UIImage

class UIImage : NSObject, NSSecureCoding
  • Create a UIImage with a border and a corner radius

    • color: The background color.
    • borderColor: The border color.
    • borderWidth: The border width.
    • cornerRadius: The border width.
    • size: The size of the output image.
    let image = UIImage(color: .red, borderColor: .blue, borderWidth: 1.0, size: bounds.size)
    

    Declaration

    Swift

    convenience public init?(color: UIColor? = nil,
                             borderColor: UIColor? = nil,
                             borderWidth: CGFloat = 0,
                             cornerRadius: CGFloat = 0,
                             size: CGSize = CGSize(width: 1, height: 1))
  • Initializes and returns the image object with the specified MUHistogram datas.

    Declaration

    Swift

    internal convenience init?(histogram: [CGFloat], bar: UIColor, size: CGSize)