/gotanda

A lightweight bitmap manipulation library for Swift.

Primary LanguageSwiftMIT LicenseMIT

Gotanda

CI Status Version License Platform

Usage

import Gotanda

let gotanda = Gotanda(width: 300, height: 200, backgroundColor: NSColor.yellowColor().CGColor).draw { (context) in
    // Draw something using context
}

if let pngData = gotanda.pngData {
    // Save PNG data.
}

Initializers

Gotanda(width: 300, height: 200, backgroundColor: NSColor.yellowColor().CGColor)
Gotanda(image: #imageLiteral(resourceName: "SomeImage"))

Requirements

  • iOS 8.0+
  • macOS 10.9+

Installation

Gotanda is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "Gotanda"

Author

Sota Yokoe, info@kreuz45.com

License

Gotanda is available under the MIT license. See the LICENSE file for more info.