MetallicImage is an Image Processing Framework on Apple Platforms using Metal and written in Swift.
Import MetallicImage Library.
import MetallicImage
Declare input, output and filter(s).
let picture = PictureInput(image: image) // image is an instance of UIImage or NSImage
let imageView = ImageView(frame: .zero)
let filter = GaussianBlur()
Use =>
operator chaining to connect input, output and filters.
picture => filter => imageView
Using Swift Package Manager:
Swift 5.3 (Xcode 12.0) is REQUIRED to build MetallicImage.
To integrate Metallic Image into your Xcode project using Swift Package Manager, add it to the dependencies value of your Package.swift
:
dependencies: [
.package(url: "https://github.com/iXerol/MetallicImage.git", .upToNextMajor(from: "0.1.0"))
]
Without using dependency managers, you can integrate MetallicImage into your project manually.
Add files in framework/MetallicImage
directory to your project.
MetallicImage is released under the MIT license. See LICENSE
for details.