Latest 0.0.3
Homepage https://github.com/lq121/LQWaterMark
License MIT
Platforms ios 5.0, requires ARC
Dependencies SDWebImage
Authors

结合sdwebImage 框架对网络图片打水印

LQWaterMark~

使用sawebImage 获取网络图片并将本地的图片进行 水印设置

/*
 *  使用sawebImage 获取网络图片并将本地的图片进行 水印设置
 *  @param watermarkUrl   传入图片URL
 *  @param waterMarkImage 水印的图片
 *  @param block          图片下载完回调
 */
    • (void)watermarkWithURL:(NSURL)watermarkUrl andWatermarkImage:(UIImage)waterMarkImage andBlock:(void (^)(UIImage*))block;

使用队列组给图片打水印

/*
 *  使用队列组给图片打水印
 *  @param watermarkUrl 图片的地址URL
 *  @param watermark    水印图片的地址URL
 *  @param block        图片下载完回调
 */
    • (void)watermarkWithURL:(NSURL)watermarkUrl andWatermarkURL:(NSURL)watermark andBlock:(void (^)(UIImage*))block;

cocoapods使用

pod ‘LQWaterMark’, ‘~> 0.0.3’

Latest podspec

{
    "name": "LQWaterMark",
    "version": "0.0.3",
    "summary": "use sdwebImage get a waterMark image",
    "homepage": "https://github.com/lq121/LQWaterMark",
    "license": "MIT",
    "authors": {
        "u9b51u9b45u9b4du9b49121": "[email protected]"
    },
    "social_media_url": "https://github.com/lq121",
    "platforms": {
        "ios": "5.0"
    },
    "source": {
        "git": "https://github.com/lq121/LQWaterMark.git",
        "tag": "0.0.3",
        "commit": "db57bcfba795c2d78ced0141d2e282b490f84bfd"
    },
    "source_files": "LQWaterMark/**/*.{h,m}",
    "requires_arc": true,
    "dependencies": {
        "SDWebImage": [
            "~> 3.8.1"
        ]
    }
}

Pin It on Pinterest

Share This