UIImage
-
Undocumented
Declaration
Swift
class func image(from layer: CALayer) -> UIImage? -
Fixes UIImage orientation which can be currepted f.e. during the filter apply or etc..
Declaration
Swift
func fixOrientation() -> UIImage -
Slightly dim the image like its shadowed
Declaration
Swift
func shadowed() -> UIImage? -
Returns the resized UIImage with given width and future image width
Declaration
Swift
public func resizeWithWidth(_ width: CGFloat) -> UIImageParameters
widththe width of future UIImage you want to use
Return Value
resized with new dimentions UIImage with given width
-
Undocumented
Declaration
Swift
public func aspectHeightForWidth(_ width: CGFloat) -> CGFloat -
Returns rotated UIImage
Declaration
Swift
public func imageRotatedByDegrees(degrees: CGFloat, flip: Bool) -> UIImage?Parameters
degreesange degrees rotation
Return Value
rotated UIImage
-
Returns base64 string
Declaration
Swift
public var base64: String -
Returns compressed image to rate from 0 to 1
Declaration
Swift
public func compressImage(rate: CGFloat) -> Data? -
Returns Image size in Bytes
Declaration
Swift
public func getSizeAsBytes() -> Int -
Returns Image size in Kylobites
Declaration
Swift
public func getSizeAsKilobytes() -> Int -
scales image
Declaration
Swift
public class func scaleTo(image: UIImage, w: CGFloat, h: CGFloat) -> UIImage -
Returns resized image with height. Might return low quality
Declaration
Swift
public func resizeWith(_ height: CGFloat) -> UIImage -
Undocumented
Declaration
Swift
public func aspectWidthFor(_ height: CGFloat) -> CGFloat -
Returns cropped image from CGRect
Declaration
Swift
public func croppedImage(_ bound: CGRect) -> UIImage? -
Use current image for pattern of color
Declaration
Swift
public func withColor(_ tintColor: UIColor) -> UIImage -
Returns the image associated with the URL
Declaration
Swift
public convenience init?(urlString: String) -
Returns an empty image //TODO: Add to readme
Declaration
Swift
public class func blankImage() -> UIImage
UIImage Extension Reference