TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Apr 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Dan Jiang, Dan Jiang.
Simple image processing.
iOS 8.4+
import DTImage
let image = UIImage()
let control = UIView()
// resize
image.dt_resize(to: CGSize(width: 200, height: 150))
// crop
image.dt_crop(to: CGRect(x: 150, y: 100, width: 100, height: 100))
// snapshot
UIImage.dt_snapshot(view: control)