Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/powermobileweb/imagecut
A UIView subclass lets you draw a path over an image and crops that part.
https://github.com/powermobileweb/imagecut
image-processing imagecutter ios ios-swift iphone-app mobile-app swift
Last synced: 17 days ago
JSON representation
A UIView subclass lets you draw a path over an image and crops that part.
- Host: GitHub
- URL: https://github.com/powermobileweb/imagecut
- Owner: powermobileweb
- License: mit
- Created: 2019-04-11T22:06:55.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-11T22:10:19.000Z (almost 6 years ago)
- Last Synced: 2024-12-20T18:54:19.052Z (28 days ago)
- Topics: image-processing, imagecutter, ios, ios-swift, iphone-app, mobile-app, swift
- Language: Swift
- Size: 1.88 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
ImageCut
===A UIView subclass lets you draw a path over an image and crops that part.
Demo
----![alt tag](https://github.com/powermobileweb/ImageCut/raw/master/Demo.gif)
#### Try
``` sh
pod try ImageFreeCut
```Requirements
----* Xcode 8+
* Swift 3+
* iOS 10+Install
----``` ruby
use_frameworks!
pod 'ImageFreeCut'
```Usage
----``` swift
import ImageFreeCut
```You can either use storyboard or create it programmatically like any UIView.
Notice that view's class name is `ImageFreeCutView`.```
open var imageToCut: UIImage?
```
Sets the image of `ImageFreeCutView`. You are going to crop that one.
```
open var imageView: UIImageView!
```
You can set the imageView's properties like `contentMode` directly from your `ImageFreeCutView` instance.```
open var imageCutShapeLayer: CAShapeLayer!
```
You can set cut layer's properties like `strokeColor`, `fillColor`, `dashPattern` directly from your `ImageFreeCutView` instance.
ImageFreeCutViewDelegate
----
Set your instance delegate and implement```
func imageFreeCutView(_ imageFreeCutView: ImageFreeCutView, didCut image: UIImage?)
```delegate method to retrive cropped image.