LoginSignup
15
15

More than 5 years have passed since last update.

NYXImagesKitを使ってみた

Posted at

NYXImagesKitという便利なUIImageのカテゴリ拡張ライブラリがあるので使ってみた。

使い方

git submodule add git://github.com/Nyx0uf/NYXImagesKit.git

サブモジュールとして追加した後は、XcodeにてプロジェクトへNYXImagesKit全体を追加します。

あとは以下のライブラリをリンクして、NYXImagesKitをビルドしてください。

  • Accelerate
  • AssetsLibrary
  • ImageIO
  • MobileCoreServices
  • QuartzCore
  • CoreImage

その後、プロジェクトにNYXImagesKitをリンクすれば利用できます。

iOS上で使える画像処理系のライブラリの中では非常に高速な方かもしれません。

使用例

// GrayScale
[image grayscale];
// GaussianBlur
[image gaussianBlurWithBias:10];
// エッジ抽出
[image edgeDetectionWithBias:10];
// エンボス加工
[image embossWithBias:10];
15
15
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
15
15