CocoaPods trunk is moving to be read-only. Read more on the blog, there are 2 months to go.

DTImage 1.0.1

DTImage 1.0.1

TestsTested ✗
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Apr 2017
SwiftSwift Version 3.0
SPMSupports SPM ✗

Maintained by Dan Jiang, Dan Jiang.



DTImage 1.0.1

DTImage

Introduction

Simple image processing.

Installation

Requirement

iOS 8.4+

Usage

Import

import DTImage

Use

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)