ImageUtility 0.3.6

ImageUtility 0.3.6

Thomas Durand 维护。



ImageUtility

Build Status CocoaPods Compatible Carthage compatible

功能

  • 根据大小和填充颜色生成图像。
  • 获取图像的平均颜色。
  • 检查图像是否全部为空。
  • 将图像调整到指定大小。
  • 通过乘数缩放图像或使其适合/填充到给定大小。
  • 通过给定内边距裁剪图像,或裁剪到指定目标大小。
  • 从图像中剪切透明像素以及/或获取图像的透明边缘内边距。

要求

此库支持 iOS >= 8.0,但由于使用 Swift 5 构建,因此需要 Xcode >= 10.2

安装

使用 Cocoapods

在您的Podfile中指定

target 'MyApp' do
    pod 'ImageUtility'
end

使用Carthage

在您的Cartfile中指定

github "Dean151/ImageUtility"

使用方法

API详细信息及文档即将推出 :)